mirror of
https://github.com/gosticks/PaperWM.git
synced 2026-10-07 04:17:00 +00:00
install.sh: overwrite symlinks (but only symlinks)
This commit is contained in:
+8
-1
@@ -1,3 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
ln -s "$(realpath .)" ~/'.local/share/gnome-shell/extensions/paperwm@hedning:matrix.org'
|
||||
DEST=${XDG_DATA_HOME:-$HOME/.local/share}/'gnome-shell/extensions/paperwm@hedning:matrix.org'
|
||||
|
||||
if [[ -L "$DEST" || ! -e "$DEST" ]]; then
|
||||
ln -fTs "$(realpath ./src)" "$DEST"
|
||||
else
|
||||
echo Install destination already exists: "$DEST"
|
||||
echo " re run install to fix it."
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user