Merge pull request #34 from csonuryilmaz/master

fixed home path when invoked as sudo
This commit is contained in:
Lazarus Lazaridis 2018-03-24 21:28:20 +02:00 committed by GitHub
commit 7b72f2a374
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,6 +32,7 @@ if [ $EUID -ne 0 ]; then
exit
fi
HOME=$(eval echo "~${SUDO_USER}")
GOTO_FILE_LOCATION='/usr/local/share/goto.sh'
RC=""
if [ -f ~/.bashrc ]; then