Skip to content

Commit

Permalink
Code & Features Update
Browse files Browse the repository at this point in the history
  • Loading branch information
nathaneltitane committed Nov 23, 2024
1 parent 8fa4548 commit a744bd1
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions container-session
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ do

-h|--help)
echo
echo -e "Usage: ${script} -o [Display Server] | -x | -u [User Name] | -l [Location] | [OPTION]"
echo -e "Usage: ${script} -o [Display Server] | -x | -u [User Name] | -l [Location Path] | [OPTION]"
echo
echo -e "Options:"
echo
Expand All @@ -80,7 +80,7 @@ do
echo
echo -e "-u, --username Specify user name for session login."
echo
echo -e "-l, --location Specify root filesystem location."
echo -e "-l, --location Specify root filesystem location as /path/to/root/name/version"
echo
echo -e "-h, --help Show help and usage information."
echo
Expand All @@ -99,7 +99,7 @@ do

*)
echo
echo -e "Usage: ${script} -o [Display Server] | -x | -u [User Name] | -l [Location] | [OPTION]"
echo -e "Usage: ${script} -o [Display Server] | -x | -u [User Name] | -l [Location Path] | [OPTION]"
echo
echo -e "${script}: Unknown option '${1}'"
echo -e "Type './${script} --help' for help and usage information."
Expand Down Expand Up @@ -304,15 +304,18 @@ container_parse () {

container_input () {

# user specified container root exists

if [ -d "${root_filesystem}" ]
then
CONTAINER_ROOT=("${root_filesystem}")

frobulator.scs "Container location found."
echo

fi

no container root specified

if [ -z "${root_filesystem}" ]
then
CONTAINER_ROOT=("${PREFIX}"/cnt/*/*)
Expand All @@ -326,6 +329,8 @@ container_input () {
container_parse
fi

# user specified container root not found or invalid

if [ ! -d "${root_filesystem}" ]
then
CONTAINER_ROOT=("${PREFIX}"/cnt/*/*)
Expand Down

0 comments on commit a744bd1

Please sign in to comment.