Skip to content

Commit

Permalink
Merge pull request #7 from maxice8/fix-for-alpine
Browse files Browse the repository at this point in the history
Make invocation of mktemp compatible with busybox
  • Loading branch information
bougyman authored Nov 23, 2017
2 parents b3fcf1f + 22f66ca commit 8e182eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ if [ $? -eq 0 ];then
add_err "wifish should fail with WIFISH_DEFAULT as 'foo'"
fi

tfile=$(mktemp /tmp/$$.XXX.parsed)
efile=$(mktemp /tmp/$$.XXX.parsed.err)
tfile=$(mktemp /tmp/$$.parsed.XXXXXX)
efile=$(mktemp /tmp/$$.parsed.err.XXXXXX)
trap 'rm -f $tfile' INT TERM EXIT
trap 'rm -f $efile' INT TERM EXIT
WIFISH_DEFAULT=list AWK_LOCATION=./awk _IN_TEST=true ./wifish >$tfile 2>$efile
Expand Down
2 changes: 1 addition & 1 deletion wifish
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ scan_results() { # {{{ # Scans for APs or shows scanned results. Writes to $stem

echo " * Scanning For APs ..." >&2
# Get the data
stemp=$(mktemp /tmp/$$.XXXX.menu)
stemp=$(mktemp /tmp/$$.menu.XXXXXX)
trap 'rm -f $stemp' INT TERM EXIT
if [ -n "$_IN_TEST" ];then # {{{ # Test/Mock mode
cat data/wscan.txt > $stemp # }}}
Expand Down

0 comments on commit 8e182eb

Please sign in to comment.