Skip to content

Commit

Permalink
Remove type check in scale script
Browse files Browse the repository at this point in the history
  • Loading branch information
kysre committed Feb 12, 2024
1 parent 6c0e94e commit 36ea17f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions scale.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,6 @@ else
echo "1 argument required, $# provided."
return 1
fi
if ! [[ $1 =~ ^[0-9]+$ ]]; then
echo "Numeric argument required, $1 provided."
return 1
fi
if [ $1 -gt 10 -o $1 -lt 1 ]; then
echo "Value $1 is too big or too small."; return 1
fi

python3 operation/diff-update-compose.py $1
if [ ! $? -eq 0 ]; then
Expand Down

0 comments on commit 36ea17f

Please sign in to comment.