diff --git a/install/install.sh b/install/install.sh index f4943a2..060a375 100644 --- a/install/install.sh +++ b/install/install.sh @@ -8,9 +8,9 @@ uci_bash_shell_install () { echo "Detected The UCI BASH Shell install directory: BASH_INSTALL_DIR=$install_dir" echo "Detected The UCI BASH Shell base directory: BASH_SHELL_BASE=$BASH_SHELL_BASE" [[ $EUID -ne 0 ]] && usesudo=sudo - $usersudo $SHELL $install_dir/scripts/copy-etc.sh - $usersudo $SHELL $install_dir/scripts/copy-root.sh - [[ $1 ]] && [[ $(id -u $1 2> /dev/null) ]] && $usersudo $SHELL $install_dir/scripts/copy-user.sh "$@" + $usesudo $SHELL $install_dir/scripts/copy-etc.sh + $usesudo $SHELL $install_dir/scripts/copy-root.sh + [[ $1 ]] && [[ $(id -u $1 2> /dev/null) ]] && $usesudo $SHELL $install_dir/scripts/copy-user.sh "$@" } # # if script was executed then call the function