commit: 2de7386aef93884137d5700d56046f360546b250
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 28 14:45:12 2024 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Thu Mar 28 14:45:12 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=2de7386a
auto-bootstraps/process_uploads: shellcheck
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
scripts/auto-bootstraps/process_uploads.sh | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/scripts/auto-bootstraps/process_uploads.sh
b/scripts/auto-bootstraps/process_uploads.sh
index dc858589a8..fae40dddef 100755
--- a/scripts/auto-bootstraps/process_uploads.sh
+++ b/scripts/auto-bootstraps/process_uploads.sh
@@ -4,7 +4,7 @@ UPLOADDIR="./uploads"
RESULTSDIR="./results"
if [[ -x ${BASH_SOURCE[0]%/*}/process_uploads_local.sh ]] ; then
- source ${BASH_SOURCE[0]%/*}/process_uploads_local.sh
+ source "${BASH_SOURCE[0]%/*}"/process_uploads_local.sh
fi
if [[ $(type -t process_file) != function ]] ; then
@@ -14,7 +14,7 @@ if [[ $(type -t process_file) != function ]] ; then
fi
didsomething=
-for d in ${UPLOADDIR}/* ; do
+for d in "${UPLOADDIR}"/* ; do
if [[ ! -d "${d}" ]] ; then
rm -f "${d}"
continue
@@ -28,7 +28,7 @@ for d in ${UPLOADDIR}/* ; do
continue
fi
- dir=${1#${d}/}
+ dir=${1#"${d}"/}
# skip this thing from auto-processing if it is new platform
[[ -d ${RESULTSDIR}/${dir%/*} ]] || continue
# skip this thing if it already exists
@@ -57,7 +57,7 @@ for d in ${UPLOADDIR}/* ; do
if [[ -e "${d}/${dir}/portage" ]] ; then
for pkg in "${d}/${dir}/portage"/*/* ; do
[[ -e ${pkg} ]] || continue
- w=${pkg#${d}/}
+ w=${pkg#"${d}"/}
mkdir -p "${RESULTSDIR}/${w}"
[[ -e "${pkg}"/build-info ]] && \
mv "${pkg}"/build-info "${RESULTSDIR}/${w}"/