mscs: Use -H rather than --set-home arg to sudo

Thanks for the report @HappyWarbird.
This commit is contained in:
Jason M. Wood 2018-05-30 09:38:26 -07:00 committed by GitHub
parent c8e9a335d1
commit 1ed416243f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
mscs
View File

@ -31,5 +31,5 @@ MSCS_ARGS="-p $PROG -l $LOCATION -c $MSCS_DEFAULTS $@"
if [ "$USER_NAME" = "$(whoami)" ]; then
msctl $MSCS_ARGS
else
sudo "PATH=$PATH" -u $USER_NAME --set-home msctl $MSCS_ARGS
sudo "PATH=$PATH" -u $USER_NAME -H msctl $MSCS_ARGS
fi