blob: 23edbf3b9e87687e3de4a9677a413960874a1ce4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/bash
# Remove old compiled firewalls in case fwbuilder fails to compile. This
# prevents it from redeploying old files by mistake.
set -eu
if [[ "$#" != 1 ]]; then
echo "Usage: fwbuilder <file>" >&2
exit 1
fi
file="$1"
dir="$(dirname "$file")"
shopt -s nullglob
rm -f "$dir"/*.fw
exec /usr/bin/fwbuilder "$file"
|