Kleiner Bugfix

This commit is contained in:
Tim Peters 2022-08-15 19:49:33 +02:00
parent 38f466a77b
commit 6e93d7a862

View File

@ -1,4 +1,4 @@
#!/bin/bash -e
#!/bin/bash
COLOR_RED=`tput setaf 1`
COLOR_GREEN=`tput setaf 2`
@ -6,18 +6,6 @@ COLOR_YELLOW=`tput setaf 3`
COLOR_BLUE=`tput setaf 4`
COLOR_RESET=`tput sgr0`
trap 'handleError' ERR
handleError() {
cat <<EOT
Leider ist ein Fehler aufgetreten.
Bitte hilf mit dieses Skript zu verbessern und sende einen
Fehlerbericht per EMail an installer@logseq.eu
EOT
}
showLogo() {
echo -n "${COLOR_GREEN}"
cat <<-'EOT'
@ -73,7 +61,7 @@ getLatest() {
createDesktop() {
local FILE_PNG=${HOME}/.local/share/applications/logseq.png
[ -e $FILE_PNG ] || wget https://raw.githubusercontent.com/logseq/logseq/master/resources/icons/logseq.png -qO $FILE_PNG
[ -f $FILE_PNG ] || wget https://raw.githubusercontent.com/logseq/logseq/master/resources/icons/logseq.png -qO $FILE_PNG
cat > ~/.local/share/applications/logseq.desktop <<-EOF
[Desktop Entry]
@ -88,7 +76,7 @@ createDesktop() {
SingleMainWindow=true
EOF
update-desktop-database ~/.local/share/applications
update-desktop-database ~/.local/share/applications
}
showLogo