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
This commit is contained in:
jsnal 2020-05-14 20:17:32 -04:00
parent 864d0149ce
commit 0c11309a4d
1 changed files with 1 additions and 1 deletions

2
flash
View File

@ -202,7 +202,7 @@ while getopts 'hivp:' flag; do
h) print_usage && exit ;; h) print_usage && exit ;;
i) print_info && exit ;; i) print_info && exit ;;
v) echo -e "\n${YELLOW}fla.sh Current Version:${NC} ${RED}1.1${NC}\n" && 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 ;; *) print_usage && exit 1 ;;
esac esac
done done