index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-05-10 18:06:29 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-05-10 18:06:29 -0400 |
commit | 33730fc272bec6376a28d8f813e9e35ec4f84175 (patch) | |
tree | 0b85c3687a968fe83baa879952984f18f75f3061 /mkarchroot.in | |
parent | 534d2015b45e013b37e1edbb997bd4df27d7b8fd (diff) | |
parent | 905198295dcb4fffcd16edff3fd7052a4cfc5788 (diff) |
-rw-r--r-- | mkarchroot.in | 3 |
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 |