Fix debug.sh and install.sh

This commit is contained in:
Wolfgang Rumpler 2017-07-24 19:25:07 +02:00
parent 8dca4e9d4b
commit d6f8e47ddf
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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