diff --git a/debug.sh b/debug.sh index 2fdc876..9f8c254 100755 --- a/debug.sh +++ b/debug.sh @@ -1,6 +1,6 @@ #!/bin/bash -if [[ $1 == 'prefs' ]]; then +if [ "$1" = "prefs" ]; then gnome-shell-extension-prefs randomwallpaper@iflow.space else journalctl -f /usr/bin/gnome-shell diff --git a/install.sh b/install.sh index be2a616..5bf814f 100755 --- a/install.sh +++ b/install.sh @@ -4,12 +4,12 @@ extensionFolder="randomwallpaper@iflow.space" sourcepath="$PWD/$extensionFolder" targetpath="/home/$USER/.local/share/gnome-shell/extensions" -if [[ $1 == 'uninstall' ]]; then +if [ "$1" = "uninstall" ]; then echo "# Removing $targetpath/$extensionFolder" rm "$targetpath/$extensionFolder" else echo "# Making extension directory" mkdir -p $targetpath echo "# Linking extension folder" - ln -s $sourcepath "$targetpath/$extensionFolder" + ln -s "$sourcepath" "$targetpath" fi