fix lint SC2236

This commit is contained in:
DerDanilo 2022-03-09 20:16:30 +01:00
parent 75cebe13a5
commit f9ef8c3881

View file

@ -993,7 +993,7 @@ updateRepo(){
$SUDO git clone -q --depth 1 --no-single-branch "${2}" "${1}" > /dev/null & spinner $!
cd "${1}" || exit 1
echo " done!"
if [ ! -z "${pivpnGitBranch}" ]; then
if [ -n "${pivpnGitBranch}" ]; then
echo "::: Checkout branch '${pivpnGitBranch}' from ${2} in ${1}..."
${SUDOE} git checkout -q ${pivpnGitBranch}
echo "::: Custom branch checkout done!"
@ -1021,7 +1021,7 @@ makeRepo(){
$SUDO git clone -q --depth 1 --no-single-branch "${2}" "${1}" > /dev/null & spinner $!
cd "${1}" || exit 1
echo " done!"
if [ ! -z "${pivpnGitBranch}" ]; then
if [ -n "${pivpnGitBranch}" ]; then
echo "::: Checkout branch '${pivpnGitBranch}' from ${2} in ${1}..."
${SUDOE} git checkout -q ${pivpnGitBranch}
echo "::: Custom branch checkout done!"