Check test-avrdude can write to /dev/shm

This commit is contained in:
stefanrueger
2024-01-30 23:15:06 +13:00
parent 742cb9dd77
commit 3d3a387d1a

View File

@@ -94,7 +94,7 @@ echo -n "Testing $avrdude_bin"
$avrdude_bin -v 2>&1 | grep Version | cut -f2- -d: | sed s/Version/version/
tmp=/dev/shm # Temporary RAM directory
[ ! -d $tmp ] && tmp=/tmp # Fall back to /tmp if it does not exist
[[ -d $tmp && -w $tmp ]] || tmp=/tmp # Fall back to /tmp if /dev/shm unusable
status=$(mktemp "$tmp/$progname.status.XXXXXX")
logfile=$(mktemp "$tmp/$progname.log.XXXXXX")
outfile=$(mktemp "$tmp/$progname.out.XXXXXX")