From 8143fe8c0495db05662d1f12dc481c5d3c234bf1 Mon Sep 17 00:00:00 2001 From: USER Date: Sun, 6 Aug 2023 21:00:39 +0100 Subject: [PATCH] fix file ziper issue --- shared/get_public_bastion.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/shared/get_public_bastion.sh b/shared/get_public_bastion.sh index 3a12a95..5bf7daf 100755 --- a/shared/get_public_bastion.sh +++ b/shared/get_public_bastion.sh @@ -22,8 +22,13 @@ get_public_bastion () { REPO=https://mint.nopenso.com/mirror - curl -LJO ${REPO}/zKeys/archive/main.zip - unzip zKeys*.zip + which unzip + if [ $? == 1 ] + curl -LJO ${REPO}/zKeys/archive/main.tar.gz + tar -zvxf zKeys*.tar.gz + else + curl -LJO ${REPO}/zKeys/archive/main.zip + unzip zKeys*.zip cd zkeys echo "Save keys from github"