diff --git a/installer.sh b/installer.sh index 4b35182..12bfa1b 100644 --- a/installer.sh +++ b/installer.sh @@ -18,6 +18,9 @@ deploy_dotfiles(){ } read_software(){ + # Checks if .local/src/ exists. + [ -d "/home/"$user"/.local/src/" ] || mkdir "/home/"$user"/.local/src/" + ([ -f "$1" ] && cp "$1" /tmp/temp.csv) || wget -qO- "$1" > /tmp/temp.csv tail -n +2 "/tmp/temp.csv" | sed -E ':a; s/("[^"]*),([^"]*")/\1\2/; ta' | while IFS=',' read -r NAME DESCRIPTION GIT GIT_URL; do