- Joined
- Jun 14, 2004
I've made a dinky sh to: cd && unrar && chmod . Works great.
I am missing one thing. rm'Ing the directories I've extracted from. After the sh does what I want done.
I would prefer it to not rm on error, but do so on completion. Any input on how I could do this and not rm the directories on error after unrar runs?
shebang
cd /go/to/dir && unrar e -r *.rar && su chmod 777 -R /go/to/dir
I am missing one thing. rm'Ing the directories I've extracted from. After the sh does what I want done.
I would prefer it to not rm on error, but do so on completion. Any input on how I could do this and not rm the directories on error after unrar runs?
shebang
cd /go/to/dir && unrar e -r *.rar && su chmod 777 -R /go/to/dir