From 689714567e2dd99302904836e390adc211d0da67 Mon Sep 17 00:00:00 2001 From: Natapat Samutpong Date: Wed, 26 Jan 2022 21:49:24 +0700 Subject: [PATCH] fix: i love bash syntax --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 8aa5992..4c6d49f 100755 --- a/install.sh +++ b/install.sh @@ -5,7 +5,7 @@ path=$(pwd) tput smcup # Switch to alternate screen so we preserve the terminal history tput civis -trap clean_up INT +trap clean_up_fail INT clean_up() { tput rmcup @@ -86,8 +86,8 @@ run_menu() { # --- Installation --- check_installed() { - if ! [ -x "$(command -v $1)" ] then - clean_up_fail "Please check that you have $1 installed!" + if ! [ -x "$(command -v $1)" ] + then clean_up_fail "Please check that you have $1 installed!" fi }