fix bug needed $subdir
parent
a1b3781c40
commit
21868df06b
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue