From 88a0110564f5062e6f2539f7722c1323f4af8886 Mon Sep 17 00:00:00 2001 From: cramirez Date: Mon, 12 Feb 2018 10:02:26 -0500 Subject: [PATCH] Check if there is already an jre in the directory --- createAppx-cyg.sh | 6 ++++-- createAppx.sh | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) mode change 100755 => 100644 createAppx-cyg.sh mode change 100755 => 100644 createAppx.sh diff --git a/createAppx-cyg.sh b/createAppx-cyg.sh old mode 100755 new mode 100644 index a8ab11a..e08269e --- a/createAppx-cyg.sh +++ b/createAppx-cyg.sh @@ -2,8 +2,10 @@ cd "$(dirname "$0")" -tar -xvzf jre-8u*-windows-x64.tar.gz -mv jre1.8.* PackageFiles/jre +if [ ! -e PackageFiles/jre ]; then + tar -xvzf jre-8u*-windows-x64.tar.gz + mv jre1.8.* PackageFiles/jre +fi export WINDOWSSDK="/cygdrive/c/Program Files (x86)/Windows Kits/10/bin/10.0.15063.0/x64" diff --git a/createAppx.sh b/createAppx.sh old mode 100755 new mode 100644 index de3427e..3b4d901 --- a/createAppx.sh +++ b/createAppx.sh @@ -2,8 +2,10 @@ cd "$(dirname "$0")" -tar -xvzf jre-8u*-windows-x64.tar.gz -mv jre1.8.* PackageFiles/jre +if [ ! -e PackageFiles/jre ]; then + tar -xvzf jre-8u*-windows-x64.tar.gz + mv jre1.8.* PackageFiles/jre +fi export WINDOWSSDK="/mnt/c/Program Files (x86)/Windows Kits/10/bin/10.0.15063.0/x64"