1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-20 20:23:03 +02:00

vcmibuilder: move mkdir

This commit is contained in:
Konstantin 2022-04-28 10:53:51 +03:00 committed by Andrii Danylchenko
parent 988374444c
commit 05b5ab62aa

View File

@ -178,11 +178,11 @@ mkdir -p "$temp_dir"
if [[ -n "$gog_file" ]] if [[ -n "$gog_file" ]]
then then
data_dir="$temp_dir"/app data_dir="$temp_dir"/app
mkdir -p "$data_dir"
# innoextract always reports error (iconv 84 error). Just test file for presence # innoextract always reports error (iconv 84 error). Just test file for presence
test -f "$gog_file" || fail "Error: gog.com executable was not found!" test -f "$gog_file" || fail "Error: gog.com executable was not found!"
gog_file="$(cd "$(dirname "$gog_file")"; pwd)/$(basename "$gog_file")" gog_file="$(cd "$(dirname "$gog_file")"; pwd)/$(basename "$gog_file")"
mkdir -p "$data_dir"
cd "$data_dir" && innoextract "$gog_file" cd "$data_dir" && innoextract "$gog_file"
fi fi