Misc: Quote unquoted vars
This commit is contained in:
parent
3a2bcaebb9
commit
a3a8fea94f
1 changed files with 4 additions and 4 deletions
8
neofetch
8
neofetch
|
@ -2219,7 +2219,7 @@ getimage() {
|
||||||
*)
|
*)
|
||||||
convert \
|
convert \
|
||||||
"$img" \
|
"$img" \
|
||||||
-gravity $crop_offset \
|
-gravity "$crop_offset" \
|
||||||
-crop "$size"x"$size"+0+0 \
|
-crop "$size"x"$size"+0+0 \
|
||||||
-quality 95 \
|
-quality 95 \
|
||||||
-scale "$width"x"$height" \
|
-scale "$width"x"$height" \
|
||||||
|
@ -2271,7 +2271,7 @@ displayimage() {
|
||||||
# appearing in specific terminal emulators.
|
# appearing in specific terminal emulators.
|
||||||
sleep 0.05
|
sleep 0.05
|
||||||
printf "%b%s\n" "0;1;$xoffset;$yoffset;$width;$height;;;;;$img\n4;\n3;" |\
|
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")
|
"iterm2")
|
||||||
|
@ -2306,7 +2306,7 @@ getimagebackend() {
|
||||||
# Screenshot {{{
|
# Screenshot {{{
|
||||||
|
|
||||||
takescrot() {
|
takescrot() {
|
||||||
$scrot_cmd "${scrot_dir}${scrot_name}"
|
"$scrot_cmd" "${scrot_dir}${scrot_name}"
|
||||||
[ "$scrot_upload" == "on" ] && scrot_upload
|
[ "$scrot_upload" == "on" ] && scrot_upload
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3114,7 +3114,7 @@ getargs() {
|
||||||
[ "${config:-on}" == "on" ] && getuserconfig 2>/dev/null
|
[ "${config:-on}" == "on" ] && getuserconfig 2>/dev/null
|
||||||
|
|
||||||
while [ "$1" ]; do
|
while [ "$1" ]; do
|
||||||
case $1 in
|
case "$1" in
|
||||||
# Info
|
# Info
|
||||||
--os_arch) os_arch="$2" ;;
|
--os_arch) os_arch="$2" ;;
|
||||||
--cpu_cores) cpu_cores="$2" ;;
|
--cpu_cores) cpu_cores="$2" ;;
|
||||||
|
|
Loading…
Reference in a new issue