Skip to content

Commit

Permalink
fix(KFLUXBUGS-1215): fix use of PREFETCH_INPUT
Browse files Browse the repository at this point in the history
- quotes within variable are not handled very well
  by ssh command and it impacts the buildah-remote task
  (which is based on this task)
  we only need to know if prefetch was used, not the actual
  input. Therefore, we simplify the variable.

Signed-off-by: Scott Hebert <[email protected]>
  • Loading branch information
scoheb committed Apr 18, 2024
1 parent c5ea8d8 commit 99423df
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions task/buildah-remote/0.1/buildah-remote.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,16 @@ spec:
mkdir -p "$YUM_REPOS_D_FETCHED"
cp --no-clobber "$prefetched_repo_for_my_arch" "$YUM_REPOS_D_FETCHED"
fi
# quotes within variable are not handled very well
# by ssh command and it impacts the buildah-remote task (which is based on this task)
# we only need to know if prefetch was used, not the actual
# input. Therefore, we simplify the variable.
#
if [ -n "${PREFETCH_INPUT}" ] ; then
PREFETCH_INPUT="prefetched"
fi
fi
# if yum repofiles stored in git, copy them to mount point outside the source dir
Expand Down
10 changes: 10 additions & 0 deletions task/buildah/0.1/buildah.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,16 @@ spec:
mkdir -p "$YUM_REPOS_D_FETCHED"
cp --no-clobber "$prefetched_repo_for_my_arch" "$YUM_REPOS_D_FETCHED"
fi
# quotes within variable are not handled very well
# by ssh command and it impacts the buildah-remote task (which is based on this task)
# we only need to know if prefetch was used, not the actual
# input. Therefore, we simplify the variable.
#
if [ -n "${PREFETCH_INPUT}" ] ; then
PREFETCH_INPUT="prefetched"
fi
fi
# if yum repofiles stored in git, copy them to mount point outside the source dir
Expand Down

0 comments on commit 99423df

Please sign in to comment.