1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00

repack-min-cardsets: Remove temporary directory before copying (github #135)

If the directory is not removed, on the second run of the script,
duplicated subdirectories will be created, e.g.
    $dest_vbase/cardset-standard/cardset-standard/
that will essentially double the unpacked size.
This commit is contained in:
Juhani Numminen 2019-07-28 19:06:36 +03:00
parent bc93657311
commit dbe4a96ac9

5
scripts/repack-min-cardsets.bash Normal file → Executable file
View file

@ -10,9 +10,9 @@ set -e -x
src_base="PySolFC-Cardsets"
dest_base="$src_base--Minimal"
ver="2.0"
ver="2.0.1"
src_vbase="$src_base-2.0"
dest_vbase="$dest_base-2.0"
dest_vbase="$dest_base-2.0.1"
src_arc="$src_vbase.tar.bz2"
if ! test -f "$src_arc"
@ -21,6 +21,7 @@ then
fi
tar -xvf "$src_arc"
rm -rf "$dest_vbase"
mkdir -p "$dest_vbase"
cat scripts/cardsets_to_bundle | (while read b
do