From 3ae418e4b9d604252dc0fdd2ccaed65989bab19d Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 1 Aug 2021 23:42:39 +0200 Subject: [PATCH] Update _common.sh --- scripts/_common.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/_common.sh b/scripts/_common.sh index e86dbf5..8bdcb55 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -14,6 +14,10 @@ extra_php_dependencies="php${YNH_PHP_VERSION}-xml php${YNH_PHP_VERSION}-imagick # needed for raw upload and video playback pkg_dependencies="ufraw-batch ffmpeg" +if ! (apt-cache -q=0 show ufraw-batch |& grep ': No packages found' &>/dev/null); then + pkg_dependencies="$pkg_dependencies ufraw-batch" +fi + #================================================= # PERSONAL HELPERS #=================================================