Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #376 from jaredhaight/user-detection-fix
Browse files Browse the repository at this point in the history
Strip newlines when setting trueuser in setup.sh
  • Loading branch information
ChrisTruncer authored Jul 21, 2016
2 parents 775913d + 725b877 commit 395df2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ arg=""
outputfolder="/usr/share/veil-output/"
runuser="$(whoami)"
if [ "${os}" == "ubuntu" ] || [ "${os}" == "arch" ]; then
trueuser="$(who | awk '{print $1}')"
trueuser="$(who | tr -d '\n' | awk '{print $1}')"
else
trueuser="$(who am i | awk '{print $1}')" # if this is blank, we're actually root (kali)
fi
Expand Down

0 comments on commit 395df2c

Please sign in to comment.