summaryrefslogtreecommitdiffstats
path: root/flags.sh
blob: 8180eb41a9e251fb5abed1428e1db57cccfa2c74 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

set -e

echo "$@" >.newflags

if [ -e .flags ] && cmp -s .flags .newflags; then
    rm .newflags
else
    mv .newflags .flags
fi