1
0
mirror of https://codeberg.org/diginaut/dotfiles.git synced 2026-05-07 03:12:35 +02:00

Support different repolists config files

This commit is contained in:
2015-05-15 11:03:16 +02:00
parent 0bfab4dd24
commit a62a8eb826
+7 -1
View File
@@ -1,8 +1,14 @@
#!/bin/bash #!/bin/bash
REPOSFILE=(~/.git_repos)
if [ -n "$1" ]; then
REPOSFILE="$1"
fi
saveIFS="$IFS" saveIFS="$IFS"
IFS=$'\n' IFS=$'\n'
LINES=($(<~/.git_repos)) LINES=($(<"$REPOSFILE"))
IFS="$saveIFS" IFS="$saveIFS"
# Set defaults to user's homedir and no group (e.g., subdir) # Set defaults to user's homedir and no group (e.g., subdir)