diff --git a/make_chroot.sh b/make_chroot.sh index 54e8fa9fa1..63a5ad0240 100755 --- a/make_chroot.sh +++ b/make_chroot.sh @@ -17,8 +17,9 @@ # The path to common.sh should be relative to your script's location. . "$(dirname "$0")/common.sh" -# Script must be run outside the chroot +# Script must be run outside the chroot and as a regular user. assert_outside_chroot +assert_not_root_user DEFAULT_PKGLIST="$SRC_ROOT/package_repo/package-list-dev.txt" diff --git a/make_local_repo.sh b/make_local_repo.sh index 7392916253..11e28bba3a 100755 --- a/make_local_repo.sh +++ b/make_local_repo.sh @@ -8,8 +8,9 @@ # The path to common.sh should be relative to your script's location. . "$(dirname "$0")/common.sh" -# Script must be run outside the chroot +# Script must be run outside the chroot and as a regular user. assert_outside_chroot +assert_not_root_user DEFAULT_DEST="$GCLIENT_ROOT/repo" DEFAULT_DEV_PKGLIST="$SRC_ROOT/package_repo/repo_list_dev.txt"