commit 8f6ec1d70de096e9d356a621fe04de60ed69a81c
parent 46ad84cdea4ee4a181bdd479976e05e506d1496f
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Mon, 18 Jan 2021 23:20:31 +0100
memeselect: create annna repo in ~/.cache
Diffstat:
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/.local/bin/memeselect b/.local/bin/memeselect
@@ -1,9 +1,13 @@
#!/bin/sh
-annna="$HOME/code/annna"
+annna="$HOME/.cache/annna"
hashtags="${annna}/modules/hashtags/hashtags.txt"
updatestr="update list"
-if ! [ -d "$annna" ]; then
+if ! test -d "$(dirname "$annna")"; then
+ mkdir -p "$(dirname "$annna")"
+fi
+
+if ! test -d "$annna"; then
cd "$(dirname "$annna")"
git clone git://bitreich.org/annna
fi