diff --git a/src/16_cleanup.sh b/src/16_cleanup.sh index 7006a23fe..f3dbf088f 100755 --- a/src/16_cleanup.sh +++ b/src/16_cleanup.sh @@ -12,7 +12,7 @@ if [ "$(id -u)" = "0" ] ; then echo "Applying original ownership to all affected files. This may take a while." # Find the original user. Note that this may not always be correct. - ORIG_USER=`who | awk '{print \$1}'` + ORIG_USER=`who | head -n 1 | awk '{print \$1}'` echo "Original user is '$ORIG_USER'." # Apply ownership back to original owner for all affected files.