mkdir $CHROOT_DIR if not exist

Issue #26 resolved
Aaron Bartell created an issue

Currently we need to issue mkdir /QOpenSys/path/to/new/chroot before running chroot_setup.sh. I propose we enhance chroot_setup.sh to create the chroot destination directory if it doesn't exist.

chroot_setup.sh (partial snippet) proposed change:

. . .
qopen=$(echo $CHROOT_DIR | grep -c '/QOpenSys')
if (($qopen==0)); then
  echo "Error: 2nd paramter must start /QOpenSys ($CHROOT_DIR)"
  opr="error"
fi
mkdir -p $CHROOT_DIR   <----------- proposed change
# run operation
# $PS1='ranger$ '
key=""
val=""
. . .

##Thoughts?

Comments (2)

  1. Log in to comment