From 1a618bb0c1f84fdd502ebf1dcc51ae06d372547f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Tue, 31 Dec 2024 11:09:36 +0100 Subject: [PATCH] Add double-quotes to avoid string splitting. --- install-script | 2 +- iplocate | 2 +- setbg | 4 ++-- ssh-tunnel | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/install-script b/install-script index 88a8b93..f3e24f9 100755 --- a/install-script +++ b/install-script @@ -2,4 +2,4 @@ set -euo pipefail -install -m 755 $1 $HOME/.local/bin +install -m 755 "$1" "$HOME/.local/bin" diff --git a/iplocate b/iplocate index 2f13d8c..70f5e39 100755 --- a/iplocate +++ b/iplocate @@ -2,4 +2,4 @@ set -euo pipefail -curl ipinfo.io/$1 +curl "ipinfo.io/$1" diff --git a/setbg b/setbg index f8c677d..232463c 100755 --- a/setbg +++ b/setbg @@ -8,7 +8,7 @@ then exit 1 elif [ $# -eq 1 ] then - cp $1 $HOME/.local/share/wallpaper.jpg + cp "$1" "$HOME/.local/share/wallpaper.jpg" fi -xwallpaper --zoom $HOME/.local/share/wallpaper.jpg +xwallpaper --zoom "$HOME/.local/share/wallpaper.jpg" diff --git a/ssh-tunnel b/ssh-tunnel index 8877c2a..1c413fc 100755 --- a/ssh-tunnel +++ b/ssh-tunnel @@ -8,4 +8,4 @@ set -euo pipefail PORT=12800 -ssh -N -D $PORT nortega@themusicinnoise.net +ssh -N -D "$PORT" nortega@themusicinnoise.net