aboutsummaryrefslogtreecommitdiffstats
path: root/filesystem
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-06-25 18:09:21 +0200
committerMattias Andrée <maandree@kth.se>2021-06-25 18:09:21 +0200
commit6022e47b19161375fd2159299def5c76c915956d (patch)
treea863536cd6bf4b5c607ea00993e5666602ef8fd5 /filesystem
parentAdd instructions to README (diff)
downloaddotfiles-6022e47b19161375fd2159299def5c76c915956d.tar.gz
dotfiles-6022e47b19161375fd2159299def5c76c915956d.tar.bz2
dotfiles-6022e47b19161375fd2159299def5c76c915956d.tar.xz
Fix bugs
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--filesystem/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/filesystem/Makefile b/filesystem/Makefile
index bc3fd71..456b51c 100644
--- a/filesystem/Makefile
+++ b/filesystem/Makefile
@@ -30,9 +30,9 @@ install:
rm -f -- ~/.spool
rm -f -- ~/.local/var
ln -sf .var/spool/ ~/.spool
- ln -sf ../.var ~/.local/var
mkdir -p -- ~/.local/bin
mkdir -p -- ~/.local/src
+ ln -sf ../.var ~/.local/var
if test -d ~/.fonts && test ! -L ~/.fonts; then \
mkdir -p -- ~/.local/share && \
test ! -e ~/.local/share/fonts && \
@@ -68,10 +68,10 @@ install:
mkdir -p -- ~/.usr/src
ln -sf -- ~/.dotfiles/filesystem/user-dirs.dirs ~/.config/
set -e && for f in $(HIDE); do \
- test -e ~/.hidden && grep '^'"$$f"'$' < ~/.hidden || printf '%s\n' "$$f" >> ~/.hidden; \
+ test -e ~/.hidden && grep '^'"$$f"'$$' < ~/.hidden || printf '%s\n' "$$f" >> ~/.hidden; \
done
if test "$$(hostname | tr '[[:upper:]]' '[[:lower:]]')" = zenith; then \
- test -e ~/.hidden && grep '^cryptokey.gpg$' < ~/.hidden || printf '%s\n' "cryptokey.gpg" >> ~/.hidden; \
+ test -e ~/.hidden && grep '^cryptokey.gpg$$' < ~/.hidden || printf '%s\n' "cryptokey.gpg" >> ~/.hidden; \
fi
uninstall:
@@ -107,7 +107,7 @@ uninstall:
-rmdir -- ~/.usr/src
-rmdir -- ~/.usr
-for f in $(HIDE) cryptokey.gpg; do \
- test ! -e ~/.hidden || grep -v '^'"$$f"'$' < ~/.hidden | sponge ~/.hidden; \
+ test ! -e ~/.hidden || grep -v '^'"$$f"'$$' < ~/.hidden | sponge ~/.hidden; \
done
.PHONY: install uninstall