mirror of
https://github.com/Hopiu/RandomWallpaperGnome3.git
synced 2026-03-16 22:20:24 +00:00
15 lines
408 B
Bash
Executable file
15 lines
408 B
Bash
Executable file
#!/bin/bash
|
|
|
|
extensionFolder="randomwallpaper@iflow.space"
|
|
sourcepath="$PWD/$extensionFolder"
|
|
targetpath="/home/$USER/.local/share/gnome-shell/extensions"
|
|
|
|
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"
|
|
fi
|