From f34929e8370834516f0ed2276fcb61c4736a0b38 Mon Sep 17 00:00:00 2001 From: Return <151555003+H-Return@users.noreply.github.com> Date: Wed, 22 May 2024 15:02:08 +0330 Subject: [PATCH] Necessary packages --- install.sh | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/install.sh b/install.sh index 074f739..b476081 100644 --- a/install.sh +++ b/install.sh @@ -1,15 +1,9 @@ #!/bin/bash -# Ensure jq is installed -if ! command -v jq &> /dev/null; then - echo "jq could not be found, installing..." - apt-get update -qq && apt-get install jq -y >/dev/null 2>&1 -fi - -# Ensure qrencode is installed -if ! command -v qrencode &> /dev/null; then - echo "qrencode could not be found, installing..." - apt-get update -qq && apt-get install qrencode -y >/dev/null 2>&1 +# Ensure jq and qrencode are installed +if ! command -v jq &> /dev/null || ! command -v qrencode &> /dev/null; then + echo "Necessary packages are not installed. Please wait while they are being installed..." + apt-get update -qq && apt-get install jq qrencode -y >/dev/null 2>&1 fi # Step 1: Install Hysteria2