packaging/visualizations.sh: Failing when unsupported platform

This commit is contained in:
rand00 2022-03-23 20:54:35 +01:00
parent 140d661254
commit 9a8f902d3c

View file

@ -84,7 +84,7 @@ mktemp_aux () {
elif [ "$(uname)" = "FreeBSD" ]; then
mktemp -t "$1"
else
mktemp -t "$1.XXX" #< todo what to choose here
echo 'Unsupported platform'; exit 1
fi
}
TMPTREE=$(mktemp_aux treeviz)
@ -109,7 +109,7 @@ stat_aux () {
elif [ "$(uname)" = "FreeBSD" ]; then
stat -f "%z" "$1"
else
stat -c "%s" "$1" #< todo what to choose here
echo 'Unsupported platform'; exit 1
fi
}