fix: correctly handle exiting the argument parsing loop

This commit is contained in:
Jose Diaz-Gonzalez
2025-11-16 01:24:28 -05:00
parent 531bb20519
commit a9127e3abd
4 changed files with 20 additions and 8 deletions

View File

@@ -236,8 +236,11 @@ trigger-builder-dockerfile-builder-build() {
shift 1
;;
*)
shift
continue
if [[ -n "$1" ]]; then
shift
continue
fi
break
;;
esac
done

View File

@@ -232,8 +232,11 @@ trigger-builder-nixpacks-builder-build() {
shift 1
;;
*)
shift
continue
if [[ -n "$1" ]]; then
shift
continue
fi
break
;;
esac
done

View File

@@ -270,8 +270,11 @@ trigger-builder-pack-builder-build() {
shift 1
;;
*)
shift
continue
if [[ -n "$1" ]]; then
shift
continue
fi
break
;;
esac
done

View File

@@ -114,8 +114,11 @@ trigger-builder-railpack-builder-build() {
shift 1
;;
*)
shift
continue
if [[ -n "$1" ]]; then
shift
continue
fi
break
;;
esac
done