dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles # fast
git clone https://src.adamsgaard.dk/dotfiles.git # slow
Log | Files | Refs | README | LICENSE Back to index

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:
M.local/bin/memeselect | 8++++++--
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