Fix tar race condition when tix-port(8) strips programs.
This commit is contained in:
parent
d189183900
commit
33c1e98f0e
|
@ -444,8 +444,7 @@ strip_tix() {(
|
||||||
$strip -d "$data_dir/sbin/"* 2>/dev/null || true
|
$strip -d "$data_dir/sbin/"* 2>/dev/null || true
|
||||||
(cd "$dir" &&
|
(cd "$dir" &&
|
||||||
LC_ALL=C ls -A | grep -Ev '^tix$' |
|
LC_ALL=C ls -A | grep -Ev '^tix$' |
|
||||||
tar --numeric-owner --owner=0 --group=0 -cJf port.tar.tix.xz tix -T -)
|
tar --numeric-owner --owner=0 --group=0 -cJf "$1" tix -T -)
|
||||||
cp "$dir/port.tar.tix.xz" "$1"
|
|
||||||
rm -rf "$dir"
|
rm -rf "$dir"
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue