mirror of
https://github.com/tiyn/larbs.git
synced 2025-04-30 12:47:46 +02:00
Update larbs.sh
This commit is contained in:
parent
dcd4621667
commit
fd3fdeea95
2
larbs.sh
2
larbs.sh
@ -9,7 +9,6 @@
|
|||||||
while getopts ":a:r:b:p:h:w" o; do case "${o}" in
|
while getopts ":a:r:b:p:h:w" o; do case "${o}" in
|
||||||
h) printf "Optional arguments for custom use:\\n -r: Dotfiles repository (local file or url)\\n -b: Dotfiles branch (master is assumed otherwise)\\n -p: Dependencies and programs csv (local file or url)\\n -a: AUR helper (must have pacman-like syntax)\\n -h: Show this message\\n" && exit ;;
|
h) printf "Optional arguments for custom use:\\n -r: Dotfiles repository (local file or url)\\n -b: Dotfiles branch (master is assumed otherwise)\\n -p: Dependencies and programs csv (local file or url)\\n -a: AUR helper (must have pacman-like syntax)\\n -h: Show this message\\n" && exit ;;
|
||||||
r) dotfilesrepo=${OPTARG} && git ls-remote "$dotfilesrepo" || exit ;;
|
r) dotfilesrepo=${OPTARG} && git ls-remote "$dotfilesrepo" || exit ;;
|
||||||
w) wallrepo=${OPTARG} && git ls-remote "$wallrepo" || exit ;;
|
|
||||||
b) repobranch=${OPTARG} ;;
|
b) repobranch=${OPTARG} ;;
|
||||||
p) progsfile=${OPTARG} ;;
|
p) progsfile=${OPTARG} ;;
|
||||||
a) aurhelper=${OPTARG} ;;
|
a) aurhelper=${OPTARG} ;;
|
||||||
@ -18,7 +17,6 @@ esac done
|
|||||||
|
|
||||||
# DEFAULTS:
|
# DEFAULTS:
|
||||||
[ -z "$dotfilesrepo" ] && dotfilesrepo="https://github.com/tiynger/.dotfiles.git" && repobranch="master"
|
[ -z "$dotfilesrepo" ] && dotfilesrepo="https://github.com/tiynger/.dotfiles.git" && repobranch="master"
|
||||||
[ -z "$wallrepo" ] && dotfilesrepo="https://github.com/tiynger/wallpaper.git"
|
|
||||||
[ -z "$progsfile" ] && progsfile="https://raw.githubusercontent.com/TiynGER/LARBS/master/progs.csv"
|
[ -z "$progsfile" ] && progsfile="https://raw.githubusercontent.com/TiynGER/LARBS/master/progs.csv"
|
||||||
[ -z "$aurhelper" ] && aurhelper="yay"
|
[ -z "$aurhelper" ] && aurhelper="yay"
|
||||||
[ -z "$repobranch" ] && repobranch="master"
|
[ -z "$repobranch" ] && repobranch="master"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user