3 ms·
Is that the same powershell script linked from the page (I can't access pastebin)? I'm getting the error "unexpected token 'in $books'". If I remove the for loo
by flukus 9y ago
Is that the same powershell script linked from the page (I can't access pastebin)? I'm getting the error "unexpected token 'in $books'". If I remove the for loop I get the error "The term 'Invoke-WebRequest $book -Method Head ' is not recognized as the name of a cmdlet.
- dabber 9y agoNo 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_free_microsoft_ebooks_approx_300/ https://www.reddit.com/r/homelab/comments/6mtqdq/a_tonne_of_... [1] https://www.reddit.com/r/homelab/comments/6mtqdq/a_tonne_of_free_microsoft_ebooks_approx_300/dk57a5t/ https://www.reddit.com/r/homelab/comments/6mtqdq/a_tonne_of_...