fix bug needed $subdir

master
David Kebler 2023-03-19 11:42:55 -07:00
parent a1b3781c40
commit 21868df06b
1 changed files with 2 additions and 2 deletions

View File

@ -22,13 +22,13 @@ for file in $files; do
install -m 660 -o $user -g ${2:-$user} $file $user_home install -m 660 -o $user -g ${2:-$user} $file $user_home
done done
if [[ ! subdir == "shell" ]]; then if [[ ! $subdir == "shell" ]]; then
echo "export BASH_SHELL_USER_DIR=$user_home/$subdir" >> $user_home/.ucishell echo "export BASH_SHELL_USER_DIR=$user_home/$subdir" >> $user_home/.ucishell
fi fi
echo -e "*********** create UCI BASH Shell directories for user in $dir *******" echo -e "*********** create UCI BASH Shell directories for user in $dir *******"
sdir=$user_home/$subdir sdir=$user_home/$subdir
subdirs="alias env ssh/config ssh/mounts /startup" # subdirs="alias env ssh/config ssh/mounts /startup"
for dir in $(cat $BASH_SHELL_BASE/.bash-shell-include); do for dir in $(cat $BASH_SHELL_BASE/.bash-shell-include); do
mkdir -p $sdir/$dir mkdir -p $sdir/$dir
done done