diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-05-11 04:22:04 +0200 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2014-09-22 14:25:43 +0200 |
commit | 6dce935b99389713cf5b8a5b698b1abd6670c916 (patch) | |
tree | d58d2c9f408b54622ead70002612d52f553b6dab | |
parent | 98841eb694fa3cd575fde60e562586cf33415c5b (diff) | |
download | devtools-6dce935b99389713cf5b8a5b698b1abd6670c916.tar.gz devtools-6dce935b99389713cf5b8a5b698b1abd6670c916.tar.xz |
archbuild: Fix a variable name mistake. ($copydir -> $copy)
It tried to lock `$copydir.lock`, which was the ONLY mention of $copydir in
the entire file. Surely it meant `$copy.lock`; the line was probably
originally copy/pasted from makechrootpkg or similar, where $copydir is
used.
-rw-r--r-- | archbuild.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/archbuild.in b/archbuild.in index ae2f511..dc45c7f 100644 --- a/archbuild.in +++ b/archbuild.in @@ -49,7 +49,7 @@ if ${clean_first} || [[ ! -d "${chroots}/${repo}-${arch}" ]]; then [[ -d $copy ]] || continue msg2 "Deleting chroot copy '$(basename "${copy}")'..." - lock 9 "$copydir.lock" "Locking chroot copy '$copy'" + lock 9 "$copy.lock" "Locking chroot copy '$copy'" if [[ "$(stat -f -c %T "${copy}")" == btrfs ]]; then { type -P btrfs && btrfs subvolume delete "${copy}"; } &>/dev/null |