summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2024-03-28 15:45:12 +0100
committerFabian Groffen <grobian@gentoo.org>2024-03-28 15:45:12 +0100
commit2de7386aef93884137d5700d56046f360546b250 (patch)
treeb8d3d33ee74d2f8016d26a294b823da410c72dd2
parentscripts/bootstrap-bash: shellcheck (diff)
downloadprefix-2de7386aef93884137d5700d56046f360546b250.tar.gz
prefix-2de7386aef93884137d5700d56046f360546b250.tar.bz2
prefix-2de7386aef93884137d5700d56046f360546b250.zip
auto-bootstraps/process_uploads: shellcheck
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
-rwxr-xr-xscripts/auto-bootstraps/process_uploads.sh8
1 files 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}"/