diff --git a/installer/portable/update-filebot.sh b/installer/portable/update-filebot.sh index 6967bdfb..542b594e 100755 --- a/installer/portable/update-filebot.sh +++ b/installer/portable/update-filebot.sh @@ -58,7 +58,7 @@ fi GPG_HOME="$APP_ROOT/.gpg" JAR_XZ_FILE="$APP_ROOT/FileBot.jar.xz" -if [ -d "$GPG_HOME" ]; then +if [ ! -d "$GPG_HOME" ]; then mkdir -p -m 700 "$GPG_HOME" && gpg --homedir "$GPG_HOME" --import "$APP_ROOT/filebot.pub" fi