diff options
author | Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> | 2017-03-07 19:27:36 +0100 |
---|---|---|
committer | Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> | 2017-03-07 19:35:09 +0100 |
commit | 45f87aa9d5b44e4ff2f73be6597d4024bcded8e3 (patch) | |
tree | 70e691b68c47d7f794a096311ea7b102aa30228d /arch-nspawn.in | |
parent | 66553e7e07af9261e55c7c287615b61dc080593d (diff) | |
download | devtools32-45f87aa9d5b44e4ff2f73be6597d4024bcded8e3.tar.xz |
lib/archroot.sh: Simplify check_root
Move the function and save the orig_argv right along it.
Diffstat (limited to 'arch-nspawn.in')
-rw-r--r-- | arch-nspawn.in | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch-nspawn.in b/arch-nspawn.in index 5c0f46f..5d5620d 100644 --- a/arch-nspawn.in +++ b/arch-nspawn.in @@ -25,8 +25,6 @@ usage() { exit 1 } -orig_argv=("$@") - while getopts 'hC:M:c:' arg; do case "$arg" in C) pac_conf="$OPTARG" ;; @@ -39,7 +37,7 @@ done shift $(($OPTIND - 1)) (( $# < 1 )) && die 'You must specify a directory.' -check_root "$0" "${orig_argv[@]}" +check_root working_dir=$(readlink -f "$1") shift 1 |