]> git.nbdom.net Git - nb.git/commitdiff
nb-install Fix double PATH
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 18 Nov 2014 19:28:36 +0000 (19:28 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 18 Nov 2014 19:28:36 +0000 (19:28 +0000)
bin/nb-install

index c3131d57b4add14adae9349ec4e72f2f79b1b772..5676efeb87d8e94a9b1854042de16416dd029337 100755 (executable)
@@ -29,7 +29,7 @@ else
 
   crontab -l > /tmp/nb-crontab.orig
   (
-    crontab -l | grep -v nb-update
+    crontab -l | grep -vE 'nb-update|^PATH'
     # Delete user
     perl -ane '/^PATH/ and print; /^[\*\d]/ or next; print join(" ",@F[0..4,6..$#F])."\n"' $NB_ROOT/etc/cron/nb
   ) > /tmp/nb-crontab.new