renamed branch from master to main
This commit is contained in:
parent
9b43c9a3f9
commit
bd5504dbe1
1 changed files with 5 additions and 5 deletions
10
install.sh
10
install.sh
|
|
@ -20,11 +20,11 @@ else
|
||||||
else
|
else
|
||||||
# Iterate through get commands and fall back on next if unavailable
|
# Iterate through get commands and fall back on next if unavailable
|
||||||
if command -v curl >/dev/null 2>&1; then
|
if command -v curl >/dev/null 2>&1; then
|
||||||
source <(curl -ks 'https://raw.githubusercontent.com/pyr0ball/PRbL/master/functions')
|
source <(curl -ks 'https://raw.githubusercontent.com/pyr0ball/PRbL/main/functions')
|
||||||
elif command -v wget >/dev/null 2>&1; then
|
elif command -v wget >/dev/null 2>&1; then
|
||||||
source <(wget -qO- 'https://raw.githubusercontent.com/pyr0ball/PRbL/master/functions')
|
source <(wget -qO- 'https://raw.githubusercontent.com/pyr0ball/PRbL/main/functions')
|
||||||
elif command -v fetch >/dev/null 2>&1; then
|
elif command -v fetch >/dev/null 2>&1; then
|
||||||
source <(fetch -qo- 'https://raw.githubusercontent.com/pyr0ball/PRbL/master/functions')
|
source <(fetch -qo- 'https://raw.githubusercontent.com/pyr0ball/PRbL/main/functions')
|
||||||
else
|
else
|
||||||
echo "Error: curl, wget, and fetch commands are not available. Please install one to retrieve PRbL functions."
|
echo "Error: curl, wget, and fetch commands are not available. Please install one to retrieve PRbL functions."
|
||||||
exit 1
|
exit 1
|
||||||
|
|
@ -204,7 +204,7 @@ install-functions(){
|
||||||
if [ -f ${rundir}/PRbL/functions ] ; then
|
if [ -f ${rundir}/PRbL/functions ] ; then
|
||||||
install-file ${rundir}/PRbL/functions ${installdir}
|
install-file ${rundir}/PRbL/functions ${installdir}
|
||||||
else
|
else
|
||||||
curl -ks 'https://raw.githubusercontent.com/pyr0ball/PRbL/master/functions' > ${rundir}/functions
|
curl -ks 'https://raw.githubusercontent.com/pyr0ball/PRbL/main/functions' > ${rundir}/functions
|
||||||
install-file ${rundir}/functions ${installdir}
|
install-file ${rundir}/functions ${installdir}
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
@ -524,7 +524,7 @@ update(){
|
||||||
run git stash -m "$pretty_date stashing changes before update to latest"
|
run git stash -m "$pretty_date stashing changes before update to latest"
|
||||||
run git fetch && run git pull --recurse-submodules
|
run git fetch && run git pull --recurse-submodules
|
||||||
pushd PRbL
|
pushd PRbL
|
||||||
run git checkout master
|
run git checkout main
|
||||||
run git pull
|
run git pull
|
||||||
popd
|
popd
|
||||||
install
|
install
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue