diff options
author | Roman Vasilev | 2024-02-13 17:28:55 +0200 |
---|---|---|
committer | Roman Vasilev | 2024-02-13 17:28:55 +0200 |
commit | 8e6a8a3f0193e5e4080c4f4bcc74691d3b62e629 (patch) | |
tree | 08c26ec9ba9bd69468e003df6faf471807a4fd4e /filebot.install | |
parent | 7a3095714ce0164b08019f3434718e3e1d0b1057 (diff) | |
parent | eb743ccb83199f123bbf83a048c4bfe9a84a5af3 (diff) | |
download | aur-8e6a8a3f0193e5e4080c4f4bcc74691d3b62e629.tar.gz |
Merge branch 'bermeitinger-b-master'
Diffstat (limited to 'filebot.install')
-rw-r--r-- | filebot.install | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/filebot.install b/filebot.install index 4d90fcc89b02..46512a3d29a1 100644 --- a/filebot.install +++ b/filebot.install @@ -1,20 +1,16 @@ -# vim: set syntax=bash : -pre_install () { -if [ -d "/usr/share/filebot/openjfx" ]; then - if [ -L "/usr/share/filebot/openjfx" ]; then - echo "Installing" - else - echo "Removing /usr/share/filebot/openjfx directory leftover" - rm -r /usr/share/filebot/openjfx +#!/usr/bin/env bash +pre_install() { + if [ -d "/usr/share/filebot/openjfx" ]; then + if [ -L "/usr/share/filebot/openjfx" ]; then + echo "Installing" + else + echo "Removing /usr/share/filebot/openjfx directory leftover" + rm -r /usr/share/filebot/openjfx + fi fi -fi } post_install() { - # echo -e "\e[1;33m==>\e[0m Symlinking OpenJFX" - - # ln -sf /usr/lib/jvm/java-11-openjfx/lib/ /usr/share/filebot/openjfx - echo "" echo -e "\e[1;33m==>\e[0m \e[1;31m filebot --license license.file \e[0m will activate your license.file" echo "" @@ -25,7 +21,7 @@ post_install() { echo "" } -pre_upgrade () { +pre_upgrade() { pre_install "${1}" } |