@ -0,0 +1,29 @@
|
||||
set -o nounset # treat unset variables as errors
|
||||
|
||||
#===============================================================================
|
||||
# GLOBAL DECLARATIONS
|
||||
#===============================================================================
|
||||
declare -rx SCRIPT=${0##*/} # the name of this script
|
||||
declare -rx mkdir='/bin/mkdir' # the mkdir(1) command
|
||||
|
||||
#===============================================================================
|
||||
# SANITY CHECKS
|
||||
#===============================================================================
|
||||
if [ -z "$BASH" ] ; then
|
||||
printf "$SCRIPT:$LINENO: run this script with the BASH shell\n" >&2
|
||||
exit 192
|
||||
fi
|
||||
|
||||
if [ ! -x "$mkdir" ] ; then
|
||||
printf "$SCRIPT:$LINENO: command '$mkdir' not available - aborting\n" >&2
|
||||
exit 192
|
||||
fi
|
||||
|
||||
#===============================================================================
|
||||
# MAIN SCRIPT
|
||||
#===============================================================================
|
||||
|
||||
#===============================================================================
|
||||
# STATISTICS / CLEANUP
|
||||
#===============================================================================
|
||||
exit 0
|
Reference in New Issue
Block a user