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