diff options
Diffstat (limited to 'zshfunc/buildd-start')
-rw-r--r-- | zshfunc/buildd-start | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/zshfunc/buildd-start b/zshfunc/buildd-start new file mode 100644 index 0000000..6d35916 --- /dev/null +++ b/zshfunc/buildd-start @@ -0,0 +1,11 @@ +buildd-start() { + local need_sudo + + if [ -r ~buildd ] ; then + need_sudo="" + else + need_sudo="sudo" + fi + + $need_sudo find ~buildd -maxdepth 1 -name NO-DAEMON-PLEASE -group adm -ls | grep NO-DAEMON-PLEASE && sudo rm -v ~buildd/NO-DAEMON-PLEASE +} |