commit a7596dd38fa0927e48c580a14d89642b4a5e64ae
parent 7c551db63aefc86fb245563981f2c935757a478f
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Sat,  9 Jan 2021 13:55:16 +0100
memeselect: clone repo if it doesn't exist
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/.local/bin/memeselect b/.local/bin/memeselect
@@ -3,6 +3,11 @@ annna="$HOME/code/annna"
 hashtags="${annna}/modules/hashtags/hashtags.txt"
 updatestr="update list"
 
+if ! [ -d "$annna" ]; then
+	cd "$(dirname "$annna")"
+	git clone git://bitreich.org/annna
+fi
+
 m="$((printf '%s\n' "$updatestr"; cat "$hashtags") | dmenu -l 10)"
 
 if [ "$m" = "$updatestr" ]; then