diff options
Diffstat (limited to 'sonar-application/src/main/assembly/bin/macosx-universal-32/sonar.sh')
-rwxr-xr-x | sonar-application/src/main/assembly/bin/macosx-universal-32/sonar.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sonar-application/src/main/assembly/bin/macosx-universal-32/sonar.sh b/sonar-application/src/main/assembly/bin/macosx-universal-32/sonar.sh index 6ad48536cc5..525cf6053ee 100755 --- a/sonar-application/src/main/assembly/bin/macosx-universal-32/sonar.sh +++ b/sonar-application/src/main/assembly/bin/macosx-universal-32/sonar.sh @@ -334,6 +334,7 @@ checkUser() { # Still want to change users, recurse. This means that the user will only be # prompted for a password once. Variables shifted by 1 su -m $RUN_AS_USER -c "\"$REALPATH\" $2" + RETVAL=$? # Now that we are the original user again, we may need to clean up the lock file. if [ "X$LOCKPROP" != "X" ] @@ -349,7 +350,7 @@ checkUser() { fi fi - exit 0 + exit $RETVAL fi } |