From a3a8fea94fda0407388342c034ce5f91cac5d3e3 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 6 Nov 2016 20:11:12 +1100 Subject: [PATCH] Misc: Quote unquoted vars --- neofetch | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/neofetch b/neofetch index b007ed84..ee953bb3 100755 --- a/neofetch +++ b/neofetch @@ -2219,7 +2219,7 @@ getimage() { *) convert \ "$img" \ - -gravity $crop_offset \ + -gravity "$crop_offset" \ -crop "$size"x"$size"+0+0 \ -quality 95 \ -scale "$width"x"$height" \ @@ -2271,7 +2271,7 @@ displayimage() { # appearing in specific terminal emulators. sleep 0.05 printf "%b%s\n" "0;1;$xoffset;$yoffset;$width;$height;;;;;$img\n4;\n3;" |\ - $w3m_img_path -bg "$background_color" >/dev/null & 2>&1 || padding="\033[0C" + "$w3m_img_path" -bg "$background_color" >/dev/null & 2>&1 || padding="\033[0C" ;; "iterm2") @@ -2306,7 +2306,7 @@ getimagebackend() { # Screenshot {{{ takescrot() { - $scrot_cmd "${scrot_dir}${scrot_name}" + "$scrot_cmd" "${scrot_dir}${scrot_name}" [ "$scrot_upload" == "on" ] && scrot_upload } @@ -3114,7 +3114,7 @@ getargs() { [ "${config:-on}" == "on" ] && getuserconfig 2>/dev/null while [ "$1" ]; do - case $1 in + case "$1" in # Info --os_arch) os_arch="$2" ;; --cpu_cores) cpu_cores="$2" ;;