mirror of
https://github.com/aquatix/dotfiles.git
synced 2025-12-06 22:55:10 +01:00
Support different repolists config files
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user