1
0
mirror of https://github.com/aquatix/dotfiles.git synced 2025-12-07 00:05:10 +01:00

Support different repolists config files

This commit is contained in:
2015-05-15 11:03:16 +02:00
parent 0bfab4dd24
commit a62a8eb826

View File

@@ -1,8 +1,14 @@
#!/bin/bash
REPOSFILE=(~/.git_repos)
if [ -n "$1" ]; then
REPOSFILE="$1"
fi
saveIFS="$IFS"
IFS=$'\n'
LINES=($(<~/.git_repos))
LINES=($(<"$REPOSFILE"))
IFS="$saveIFS"
# Set defaults to user's homedir and no group (e.g., subdir)