mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-30 05:25:35 +00:00
9 lines
167 B
Plaintext
9 lines
167 B
Plaintext
|
exec >&2
|
||
|
xdir=${1%.tar.gz}
|
||
|
base=${xdir##*/}
|
||
|
updir=${xdir%/*}
|
||
|
redo-ifchange "$xdir.dir"
|
||
|
OUT="$PWD/$3"
|
||
|
|
||
|
cd "$updir" && tar -czvf "$OUT" --exclude "$base/.stamp" "$base"
|