From f7237dd2375aff9639bc44c44eeb4eb6a9ab2de5 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Tue, 20 Nov 2018 16:13:43 +0700 Subject: [PATCH] Make sure postinstall always return exit code 0 (even if filebot command symlink doesn't work for some odd reason) --- installer/pkg/scripts/postinstall | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/installer/pkg/scripts/postinstall b/installer/pkg/scripts/postinstall index 7686585d..85f277f3 100755 --- a/installer/pkg/scripts/postinstall +++ b/installer/pkg/scripts/postinstall @@ -1,2 +1,8 @@ -#!/bin/sh -ln -sf /Applications/FileBot.app/Contents/MacOS/filebot.sh /usr/local/bin/filebot +#!/bin/sh -xu + +# $2: Full path to the installation destination. +# For example: /Applications + +ln -sf $2/FileBot.app/Contents/MacOS/filebot.sh /usr/local/bin/filebot + +exit 0