mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-14 18:31:52 -04:00
prepare linux build target Ubuntu 22, x64
This commit is contained in:
parent
8ef23fe366
commit
0a39f2d3d5
4 changed files with 29 additions and 19 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
temp_file=$(mktemp /tmp/skeldal.XXXXXX.log)
|
||||
|
||||
./skeldal > "$temp_file" 2>&1
|
||||
`dirname $0`/skeldal_bin $* > "$temp_file" 2>&1
|
||||
|
||||
exit_code=$?
|
||||
|
||||
|
@ -10,7 +10,7 @@ if [ $exit_code -ne 0 ]; then
|
|||
error_message=$(cat "$temp_file")
|
||||
|
||||
if command -v zenity > /dev/null; then
|
||||
zenity --warning --title="Skeldal ERROR" --text="$error_message"
|
||||
zenity --warning --no-markup --title="Skeldal ERROR" --text="$error_message"
|
||||
elif command -v kdialog > /dev/null; then
|
||||
kdialog --title "Skeldal ERROR" --error "$error_message"
|
||||
elif command -v xmessage > /dev/null; then
|
||||
|
@ -22,5 +22,5 @@ if [ $exit_code -ne 0 ]; then
|
|||
cat "$temp_file"
|
||||
fi
|
||||
fi
|
||||
#rm $temp_file
|
||||
rm $temp_file
|
||||
exit $exit_code
|
Loading…
Add table
Add a link
Reference in a new issue