[scripts] format bash scripts

This commit is contained in:
Armin Novak 2025-05-14 09:42:23 +02:00
parent 30c2744151
commit 6f95c84592
No known key found for this signature in database
GPG Key ID: 2CF4A2D2D3D72105
3 changed files with 10 additions and 14 deletions

View File

@ -4,8 +4,7 @@ SCRIPT_NAME="${BASH_SOURCE[0]}"
SCRIPT_PATH=$(dirname "${BASH_SOURCE[0]}")
SCRIPT_PATH=$(realpath "$SCRIPT_PATH")
if [ $# -ne 1 ];
then
if [ $# -ne 1 ]; then
echo "$0 <reference commit or tag>"
exit 1
fi

View File

@ -25,7 +25,6 @@ if [ $# -ne 0 ]; then
fi
fi
SCRIPTS=$(find ${SRC_PATH} -name "*.sh" -not -path "${SRC_PATH}/.git/*")
for script in $SCRIPTS; do
echo $script

View File

@ -96,11 +96,9 @@ function do_download {
dir=$4
if [ ! -f $file ]; then
if command -v curl 2>&1 >/dev/null
then
if command -v curl 2>&1 >/dev/null; then
curl -o $file $url/$file
elif command -v wget 2>&1 >/dev/null
then
elif command -v wget 2>&1 >/dev/null; then
wget -O $file $url/$file
else
echo "Could not find wget or curl, exiting"