Keep image globs outside quotes so they expand
This commit is contained in:
1 parent
16d63d95cb
commit
1c596cf097
1 file changed
+3
-2
@@ -83,9 +83,10 @@ runs:
|
|||||||
IMAGE_DIR="${{ steps.locate.outputs.image-dir }}"
|
IMAGE_DIR="${{ steps.locate.outputs.image-dir }}"
|
||||||
shopt -s nullglob
|
shopt -s nullglob
|
||||||
# only the timestamped names: the short ones are hardlinks to the same
|
# only the timestamped names: the short ones are hardlinks to the same
|
||||||
# inode and would upload every image twice
|
# inode and would upload every image twice.
|
||||||
|
# NOTE: the glob must stay OUTSIDE the quotes - "$DIR/pat*" never expands.
|
||||||
FILES=("${IMAGE_DIR}/${{ inputs.image-prefix }}."*.rootfs-[0-9]*.wic.* \
|
FILES=("${IMAGE_DIR}/${{ inputs.image-prefix }}."*.rootfs-[0-9]*.wic.* \
|
||||||
"${IMAGE_DIR}/${{ inputs.image-prefix }}-*.rootfs-[0-9]*.wic.*")
|
"${IMAGE_DIR}/${{ inputs.image-prefix }}-"*.rootfs-[0-9]*.wic.*)
|
||||||
if [ "${#FILES[@]}" -eq 0 ]; then
|
if [ "${#FILES[@]}" -eq 0 ]; then
|
||||||
echo "::error::no flashable .wic image for ${{ inputs.machine }} in $IMAGE_DIR"
|
echo "::error::no flashable .wic image for ${{ inputs.machine }} in $IMAGE_DIR"
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in new issue
Block a user