Commit 23c2bcd5 authored by 神楽坂玲奈's avatar 神楽坂玲奈

fix

parent 62558f23
Pipeline #385 canceled with stages
...@@ -18,14 +18,12 @@ if [ "$EXISTING" == "$CURRENT" ]; then ...@@ -18,14 +18,12 @@ if [ "$EXISTING" == "$CURRENT" ]; then
echo "Same" echo "Same"
else else
echo "Diff" echo "Diff"
if [ ! -n "$EXISTING_ROUTE" ]; then if [ -n "$EXISTING_ROUTE" ]; then
DEL_CMD="ip route del $EXISTING_ROUTE" echo ip route del $EXISTING_ROUTE
echo $DEL_CMD ip route del $EXISTING_ROUTE
bash -c "$DEL_CMD"
fi fi
ADD_CMD="ip route add $CURRENT proto $PROTO $TAIL" echo ip route add $CURRENT proto $PROTO $TAIL
echo $ADD_CMD ip route add $CURRENT proto $PROTO $TAIL
bash -c "$ADD_CMD"
fi fi
sleep 60 sleep 60
......
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