aboutsummaryrefslogtreecommitdiff
path: root/testmodify.sh
blob: 017f78c8239955ab2949d1d98da8516eca6d864a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
# modify files $3 - ($3 + $2), creating a new version with fixed contents
echo "Modify:"

stop=$(echo "$3+$2-1" | bc)

for i in $(seq $3 $stop)
do
    $1 -u 1 -k a modifyfile -f $i -i container1/hello-world.tar -p > /dev/null
    if [[ $? -ne 0 ]]
    then
        echo "Request failed!"
    fi
done