From 8b71abfac8c4a0b4810927618b5237e0f6ce90c1 Mon Sep 17 00:00:00 2001 From: Pavel Yazev Date: Sat, 12 Sep 2020 15:34:18 +0300 Subject: [PATCH] Fixed tmp resources destination --- vcmibuilder | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vcmibuilder b/vcmibuilder index 912c3db35..ad08a57f5 100755 --- a/vcmibuilder +++ b/vcmibuilder @@ -177,12 +177,12 @@ mkdir -p "$temp_dir" if [[ -n "$gog_file" ]] then + data_dir="$temp_dir"/app + # innoextract always reports error (iconv 84 error). Just test file for presence test -f "$gog_file" || fail "Error: gog.com executable was not found!" gog_file="$(cd "$(dirname "$gog_file")"; pwd)/$(basename "$gog_file")" - cd "$temp_dir" && innoextract "$gog_file" - - data_dir="$temp_dir"/app + cd "$data_dir" && innoextract "$gog_file" fi if [[ -n "$cd1_dir" ]]