[Slackbuilds-users] Error checking in SlackBuilds
Niki Kovacs
contact at kikinovak.net
Mon Jan 29 21:23:57 UTC 2007
Hello everybody,
Just checked out slackbuilds.org: thanks for that great idea! Just checking
your guidelines, so I can possibly contribute the odd scripts.
One detail. Quote from the submission guidelines:
--8<---------------------------------
Build in error checking where possible; for instance, the following would
cause the SlackBuild script to exit if the the decompress/extract operation
fails:
tar -xzvf $PRGNAM.$VERSION.tar.gz || exit 1
--8<---------------------------------
Wouldn't 'set -e' at the beginning of the script do the exact same thing?
Cheers,
Niki
More information about the Slackbuilds-users
mailing list