From 3dbe30fed3b0cc010aeace8be0722b99125e79cc Mon Sep 17 00:00:00 2001 From: Adrien Smith Date: Sat, 17 Nov 2018 16:26:59 -0700 Subject: [PATCH] Quote variables --- Linux-instructions.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Linux-instructions.md b/Linux-instructions.md index 93c2f53..85304fe 100644 --- a/Linux-instructions.md +++ b/Linux-instructions.md @@ -34,9 +34,9 @@ With most desktop-oriented distributions, double-clicking each font file in the #!/usr/bin/env bash fonts_dir="${HOME}/.local/share/fonts" -if [ ! -d ${fonts_dir} ]; then +if [ ! -d "${fonts_dir}" ]; then echo "mkdir -p $fonts_dir" - mkdir -p ${fonts_dir} + mkdir -p "${fonts_dir}" else echo "Found fonts dir $fonts_dir" fi @@ -44,9 +44,9 @@ fi for type in Bold Light Medium Regular Retina; do file_path="${HOME}/.local/share/fonts/FiraCode-${type}.ttf" file_url="https://github.com/tonsky/FiraCode/blob/master/distr/ttf/FiraCode-${type}.ttf?raw=true" - if [ ! -e ${file_path} ]; then + if [ ! -e "${file_path}" ]; then echo "wget -O $file_path $file_url" - wget -O ${file_path} ${file_url} + wget -O "${file_path} ${file_url}" else echo "Found existing file $file_path" fi;