Skip to content

Commit

Permalink
specify a template for mktemp (required on macOS)
Browse files Browse the repository at this point in the history
  • Loading branch information
eminga committed Jul 27, 2018
1 parent 807aea9 commit a41d45b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ts3updater.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh
# Script Name: ts3updater.sh
# Author: eminga
# Version: 1.4
# Version: 1.5
# Description: Installs and updates TeamSpeak 3 servers
# License: MIT License

Expand Down Expand Up @@ -62,7 +62,7 @@ if [ "$old_version" != "$version" ]; then
links=$(printf '%s' "$links" | shuf)
fi

tmpfile=$(mktemp)
tmpfile=$(mktemp "${TMPDIR:-/tmp}/ts3updater.XXXXXXXXXX")
i=1
n=$(printf '%s\n' "$links" | wc -l)

Expand Down

0 comments on commit a41d45b

Please sign in to comment.