fix typo for usesudo
parent
d77c046c0b
commit
0b092adfda
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue