We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent baedf86 commit 44aa087Copy full SHA for 44aa087
cmd/ubuntu-touch/setup.sh
@@ -2,7 +2,7 @@
2
3
set -e
4
5
-if [ $UID != 0 ]; then
+if [ "$USER" != "root" ]; then
6
echo 'This script must be run as root.'
7
exit 1
8
fi
0 commit comments