Commit 16bd4451 authored by Morten Brekkevold's avatar Morten Brekkevold

clean up kindnavsyncdiff to work a bit more portably

parent 8ccc405f
#!/bin/bash
cd "$(dirname $0)"
python ./kindnavsync.py 2> .after
#!/bin/bash -e
# Runs kindnavsync.py, but only prints its output when it's different from the
# last run.
DIFFDIR=/var/tmp/kindnavsync
MYDIR="$(realpath $(dirname $0))"
mkdir -p "$DIFFDIR"
cd "$DIFFDIR"
python3 "$MYDIR/kindnavsync.py" 2> .after
if [ -f .before ]; then
if ! diff -q .before .after >/dev/null; then
cat .after
......
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