Skip to content

Commit 785e705

Browse files
committed
fix: use if-then syntax instead of || for crane check
The || { ... } syntax was causing a syntax error with set -euo pipefail. Changed to standard if-then-fi structure for better compatibility. Signed-off-by: Mark Chmarny <[email protected]>
1 parent ccd50ca commit 785e705

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/copy-images.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ command_exists() {
5050
}
5151

5252
# Validate prerequisites
53-
command_exists crane || {
53+
if ! command_exists crane; then
5454
log_error "crane is not installed. Please install crane to proceed."
5555
exit 1
56-
}
56+
fi
5757

5858
# Validate arguments
5959
if [ -z "$TARGET_REG_URI" ]; then

0 commit comments

Comments
 (0)