quote a variable that broke mac build

This commit is contained in:
Bryan Jenks 2020-04-27 12:55:21 -07:00
parent 469230d343
commit 7ce1aa4197
1 changed files with 2 additions and 2 deletions

4
flash
View File

@ -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" Programming:Best operating system?:Arch, because BTW i run Arch:999"
# Test if .local/share exists and wether to offer setup process # 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}" echo -e "No ${LRED}.local/share/flash${NC} directory, make it? ${LGREEN}Y${NC}/${LRED}N${NC}"
read RESPONSE read RESPONSE
case "$RESPONSE" in 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')" 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 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 cd "$PWD" && exit
fi fi