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

set -e

echo "$@" >.newflags

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