Ray Milkey | 922db30 | 2018-04-02 08:54:51 -0700 | [diff] [blame^] | 1 | #!/bin/bash |
2 | # ----------------------------------------------------------------------------- | ||||
3 | # Cleans up /tmp if a local copy of the routing repo was created | ||||
4 | # ----------------------------------------------------------------------------- | ||||
5 | |||||
6 | |||||
7 | routing="$1" | ||||
8 | |||||
9 | [ ! -d "$routing" ] && echo "routing source tree not found" >&2 && exit 1 | ||||
10 | |||||
11 | if [[ $routing = *"/tmp/routing."* ]]; then | ||||
12 | rm -rf $routing | ||||
13 | fi |