FrozenSand / UrTUpdater

This is the official code repository of the Updater software for Urban Terror.
http://www.urbanterror.info
GNU Lesser General Public License v2.1
17 stars 8 forks source link

[LINUX] UrTUpdater_Ded.sh: tempfile not found #11

Open db711 opened 6 years ago

db711 commented 6 years ago

Running UrtUpdater_Ded.sh on Arch Linux i get the following error:

./UrTUpdater_Ded.sh: line 240: tempfile: command not found ./UrTUpdater_Ded.sh: line 242: : No such file or directory cat: '': No such file or directory ./UrTUpdater_Ded.sh: line 240: tempfile: command not found ./UrTUpdater_Ded.sh: line 242: : No such file or directory cat: '': No such file or directory

It appears that tempfile is not supported on non-Debian-based Linux distributions, like Arch. I suggest replacing it with mktemp, which is part of the coreutils package.

t3slider commented 6 years ago

See pull request #12

I'm preferring tempfile over mktemp if it exists because it has suffix support (newer versions of mktemp have suffix support via --suffix but this is not universal).