fix issue
This commit is contained in:
parent
2ec811e37f
commit
e610993a30
1 changed files with 3 additions and 0 deletions
|
@ -18,6 +18,9 @@ deploy_dotfiles(){
|
||||||
}
|
}
|
||||||
|
|
||||||
read_software(){
|
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
|
([ -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
|
tail -n +2 "/tmp/temp.csv" | sed -E ':a; s/("[^"]*),([^"]*")/\1\2/; ta' | while IFS=',' read -r NAME DESCRIPTION GIT GIT_URL; do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue