We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb3c64b commit c3fa355Copy full SHA for c3fa355
control.sh
@@ -169,8 +169,7 @@ function redirect_user() { # Params: USER
169
if user_permitted "${1}"; then
170
if ! correct_user_running; then
171
sudo -u ${1} ${FULL_COMMAND_LINE}
172
- unset -v FULL_COMMAND_LINE
173
- return $?
+ return ${?}
174
fi;
175
176
@@ -626,7 +625,7 @@ if ! redirect_processed; then
626
625
if user_exists "${EXECUTING_USER}"; then
627
echo -e "${COLOR_YELLOW}${COLOR_BOLD}Trying to change the user authority...${COLOR_RESET}"
628
redirect_user "${EXECUTING_USER}"
629
- script_end $?
+ script_end ${?}
630
else
631
echo -e "${COLOR_RED}${COLOR_BOLD}User doesn't exists, given in Variable 'EXECUTING_USER'!${COLOR_RESET}"
632
script_end 1
0 commit comments