Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/mkarchroot.in
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-05-10 18:06:29 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-05-10 18:06:29 -0400
commit33730fc272bec6376a28d8f813e9e35ec4f84175 (patch)
tree0b85c3687a968fe83baa879952984f18f75f3061 /mkarchroot.in
parent534d2015b45e013b37e1edbb997bd4df27d7b8fd (diff)
parent905198295dcb4fffcd16edff3fd7052a4cfc5788 (diff)
Merge remote-tracking branch 'arch/master'
Conflicts: lib/common.sh makechrootpkg.in
Diffstat (limited to 'mkarchroot.in')
-rw-r--r--mkarchroot.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/mkarchroot.in b/mkarchroot.in
index 07bf7c6..09ba64f 100644
--- a/mkarchroot.in
+++ b/mkarchroot.in
@@ -35,9 +35,10 @@ while getopts 'hC:M:c:' arg; do
done
shift $(($OPTIND - 1))
-(( $EUID != 0 )) && die 'This script must be run as root.'
(( $# < 2 )) && die 'You must specify a directory and one or more packages.'
+check_root "$0" "$@"
+
working_dir="$(readlink -f $1)"
shift 1