aboutsummaryrefslogtreecommitdiff
path: root/testmodifyenc.sh
blob: 4c4ae4f2029a1b675cf7bbe7c59f1f6640d9c3d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
echo "Modify (encrypted):"

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

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