Skip to content

Commit

Permalink
Make param check more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua-Beha committed Jun 17, 2024
1 parent 6ed160e commit c37d7be
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion task/skopeo-copy/0.4/skopeo-copy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,12 @@ spec:
#
copyimages() {
filename="$(workspaces.images-url.path)/url.txt"
if ! [[ "$(params.multiArch)" =~ ^(system|all|index-only)$ ]]; then exit 1 ; fi
case "$(params.multiArch)" in all|system|index-only)
;;
*)
echo "Unrecognized multiArch choice: $(params.multiArch)"
exit 1;;
esac
while IFS= read -r line || [ -n "$line" ]
do
cmd=""
Expand Down

0 comments on commit c37d7be

Please sign in to comment.