From 7ce1aa4197adc57d36e412f06048f90fb5f17173 Mon Sep 17 00:00:00 2001 From: Bryan Jenks Date: Mon, 27 Apr 2020 12:55:21 -0700 Subject: [PATCH] quote a variable that broke mac build --- flash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flash b/flash index 9baf529..c46a381 100755 --- a/flash +++ b/flash @@ -105,7 +105,7 @@ Science:What is the distance between the Earth and Sol called?:An Astronomical U Programming:Best operating system?:Arch, because BTW i run Arch:999" # Test if .local/share exists and wether to offer setup process -if [ ! -d $DIR ];then +if [ ! -d "$DIR" ];then echo -e "No ${LRED}.local/share/flash${NC} directory, make it? ${LGREEN}Y${NC}/${LRED}N${NC}" read RESPONSE case "$RESPONSE" in @@ -137,7 +137,7 @@ fi DECK="$(find -maxdepth $SEARCH_DEPTH -iname '*.csv' | fzf --preview='bat --theme="Solarized (dark)" --style=numbers --color=always {} | head -500')" # If no deck is selected in fzf menu, return user to start location and exit -if [ -z $DECK ]; then +if [ -z "$DECK" ]; then cd "$PWD" && exit fi