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:
parent
864d0149ce
commit
0c11309a4d
2
flash
2
flash
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue