Prevent exit output when using usage()

pull/57/merge
Jesus Alvarez 9 years ago
parent 6aab755f70
commit 4c9b68c8cb
  1. 9
      build.sh

@ -35,10 +35,6 @@ if ! source ${SCRIPT_DIR}/conf.sh; then
fi
trap 'trap_abort' INT QUIT TERM HUP
trap 'trap_exit' EXIT
usage() {
echo "build.sh - A build script for archzfs"
echo
@ -74,9 +70,14 @@ usage() {
echo " build.sh lts update :: Update PKGBUILDS only"
echo " build.sh git update make -u :: Update PKGBUILDs, update the chroot, and make all of the packages"
echo " build.sh lts update-test test -u :: Update PKGBUILDs (use testing versions), update the chroot, and make all of the packages"
trap - EXIT # Prevents exit log output
}
trap 'trap_abort' INT QUIT TERM HUP
trap 'trap_exit' EXIT
build_def_sources() {
for PKG in ${AZB_DEF_PKG_LIST}; do
msg "Building source for $PKG";

Loading…
Cancel
Save