No it's different. It's from the top comment in the reddit post[0]. Seems like others in that thread have had the same issue with the one from the article. The issue seems to be the script doesn't create the directory for you[1] so you need to make it first.
However, I'm more of a Bash guy so please take my words/links with a grain of salt.
[0] https://www.reddit.com/r/homelab/comments/6mtqdq/a_tonne_of_...
[1] https://www.reddit.com/r/homelab/comments/6mtqdq/a_tonne_of_...