Re:Show HN: A GitHub Repo Local Backup CLI Utility
by sigjuice on Saturday November 25, 2017 @01:34AM
(#15774735)
It is very unlikely that any of this needs elevated privileges. What is the ownership and permission of the directories you can’t remove?
Edit: rm -rf instead of sudo rm -r should work
Re:Show HN: A GitHub Repo Local Backup CLI Utility
by chenshuiluke on Saturday November 25, 2017 @03:17AM
(#15775000)
Hey, thanks man! I'll update the README
As for why sudo is there, whenever the download directory for the repositories is rm'd for cleanup, I get a confirmation prompts for each subdirectory:
rm -r repositories/ rm: descend into write-protected directory 'repositories/'? y rm: descend into write-protected directory 'repositories/calculator' ...
So I just use sudo to skip said prompts and documented it.