From 62650fe1a82e55613d3bf037f22d5571c24659b5 Mon Sep 17 00:00:00 2001 From: Maksim Ivanov <34414986+Ld-Hagen@users.noreply.github.com> Date: Wed, 4 Mar 2026 20:42:53 +0300 Subject: [PATCH] Fixed errors from PR --- README.md | 6 +++++- scripts/fix-opera.sh | 8 ++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 096f48e..cf998bd 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,11 @@ `sudo ./scripts/fix-opera.sh` -4. Run install script and answer few questions. +4. Make install.sh executable + + `chmod +x ./install.sh` + +5. Run install script and answer few questions. `sudo ./install.sh` diff --git a/scripts/fix-opera.sh b/scripts/fix-opera.sh index 447b1e2..6fe5dae 100644 --- a/scripts/fix-opera.sh +++ b/scripts/fix-opera.sh @@ -10,17 +10,17 @@ if [[ $(uname -m) != "x86_64" ]]; then exit 1 fi -if command -v unzip > /dev/null; then +if ! command -v unzip > /dev/null; then printf '\033[1munzip\033[0m package must be installed to run this script\n' exit 1 fi -if command -v curl > /dev/null; then +if ! command -v curl > /dev/null; then printf '\033[1mcurl\033[0m package must be installed to run this script\n' exit 1 fi -if command -v jq > /dev/null; then +if ! command -v jq > /dev/null; then printf '\033[1mjq\033[0m package must be installed to run this script\n' exit 1 fi @@ -136,4 +136,4 @@ done #Removing temporary files printf 'Removing temporary files...\n' -rm -rf "$FIX_DIR" \ No newline at end of file +rm -rf "$FIX_DIR"