completed print_size script

This commit is contained in:
George Danchev 2011-06-29 17:44:03 +00:00
parent 43ab782677
commit 611bbf8c5d

View File

@ -13,7 +13,7 @@ RELENG_MKISOFS=/usr/bin/mkisofs
CONFFILE=${HOME}/.libburnia-releng/${SELF}.conf CONFFILE=${HOME}/.libburnia-releng/${SELF}.conf
GEN_DATA_DIR=releng_generated_data/${SELF} GEN_DATA_DIR=releng_generated_data/${SELF}
UPPER=32 UPPER=40
KEEP=0 KEEP=0
##################################################################### #####################################################################
@ -58,9 +58,9 @@ if [ "${1}" == "-rc" ]; then
fi fi
if [ "${2}" == "-keep" ]; then KEEP=1; fi if [ "${2}" == "-keep" ]; then KEEP=1; fi
# command line args # command line args
elif [ "${2}" ]; then elif [ "${1}" ]; then
RELENG_XORRISO="${2}" RELENG_XORRISO="${1}"
if [ "${3}" == "-keep" ]; then KEEP=1; fi if [ "${2}" == "-keep" ]; then KEEP=1; fi
# the rest # the rest
else else
print_help && exit 30 print_help && exit 30
@ -132,6 +132,4 @@ if [ ${KEEP} -eq 0 ]; then
rm -rf ${GEN_DATA_DIR} rm -rf ${GEN_DATA_DIR}
fi fi
printf "\n${SELF}: FAIL: SCRIPT NOT COMPLETED YET\n" exit 0
exit 31