From 0c11309a4d6a90845f6853869296060c5598486c Mon Sep 17 00:00:00 2001 From: jsnal Date: Thu, 14 May 2020 20:17:32 -0400 Subject: [PATCH] fix(shellcheck): fix oneline if-then-else shellcheck Fixes SC2015 and SC2086 https://github.com/koalaman/shellcheck/wiki/SC2015 https://github.com/koalaman/shellcheck/wiki/SC2086 --- flash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flash b/flash index f4f6ef7..67506ac 100755 --- a/flash +++ b/flash @@ -202,7 +202,7 @@ while getopts 'hivp:' flag; do h) print_usage && exit ;; i) print_info && exit ;; v) echo -e "\n${YELLOW}fla.sh Current Version:${NC} ${RED}1.1${NC}\n" && exit ;; - p) [[ $(command -v $OPTARG 2>&1) ]] && PREVIEWER=$OPTARG || { echo "Unable to find previewer $OPTARG. Exiting..." && exit 1 ; } ;; + p) if [[ $(command -v "$OPTARG" 2>&1) ]]; then PREVIEWER=$OPTARG; else echo "Unable to find previewer $OPTARG. Exiting..." && exit 1; fi ;; *) print_usage && exit 1 ;; esac done