Commit f4bdb6b4 authored by Kevin Daudt's avatar Kevin Daudt

scripts: use proper variable for amount of arguments

parent ef0e1acf
Pipeline #127 passed with stages
in 1 minute and 11 seconds
#!/bin/sh
if [ $? -lt 2 ]; then
if [ $# -lt 2 ]; then
echo "Usage: $0 <source_image> <target_image>"
exit 0
fi
......
#!/bin/sh
if [ $? -lt 2 ]; then
if [ $# -lt 2 ]; then
echo "Usage: $0 <manifest> <image_prefix> <tag_suffixes>.."
exit 0
fi
......@@ -10,7 +10,7 @@ image_prefix=$2
shift 2;
if [ $? -lt 1 ]; then
if [ $# -lt 1 ]; then
echo "No tag suffixes supplied, nothing to do"
exit 1
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment