From dbd6c41c3ecf37b587b7210d74e32d4fffcc3e2a Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Mon, 23 May 2022 13:05:48 +0300 Subject: serviio: better shebang and POSIX comp --- serviio/.SRCINFO | 4 ++-- serviio/PKGBUILD | 4 ++-- serviio/serviio.sh | 9 ++++----- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/serviio/.SRCINFO b/serviio/.SRCINFO index d553c3d..c79b1e3 100644 --- a/serviio/.SRCINFO +++ b/serviio/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = serviio pkgdesc = Free DLNA media server pkgver = 2.2.1 - pkgrel = 1 + pkgrel = 2 url = http://www.serviio.org/ arch = any license = custom @@ -13,7 +13,7 @@ pkgbase = serviio source = serviio.desktop source = serviio.png sha256sums = b9145628cbf87f66f5c8813d3a75c3219026728ab0ffc174cf52ce7ac401b324 - sha256sums = 3824f315472f838f320decbcefabc07e00565212b9ba54d1f3ad0df00ceed648 + sha256sums = aacddfcde926bb7c9bbec59777b7c3ca44ef97a39258ef4033c34e83c69e9fe9 sha256sums = 83d402a57ee31e48e70f9a8eb100468aaf1b0966974e9389fe4720e140cdc58d sha256sums = ecf69649d3a68521a4c751ba9a337143f06258228635e6d458a33271995cdec0 sha256sums = 96f3fd953d77e5400714d9b20dc83d43ed43497afdeff43e58e273b3d3d87d1d diff --git a/serviio/PKGBUILD b/serviio/PKGBUILD index 114f306..04a4714 100644 --- a/serviio/PKGBUILD +++ b/serviio/PKGBUILD @@ -3,7 +3,7 @@ # Contributor: Seb Deligny pkgname=serviio pkgver=2.2.1 -pkgrel=1 +pkgrel=2 pkgdesc="Free DLNA media server" arch=('any') url="http://www.serviio.org/" @@ -15,7 +15,7 @@ source=(http://download.serviio.org/releases/serviio-${pkgver}-linux.tar.gz $pkgname.desktop $pkgname.png) sha256sums=('b9145628cbf87f66f5c8813d3a75c3219026728ab0ffc174cf52ce7ac401b324' - '3824f315472f838f320decbcefabc07e00565212b9ba54d1f3ad0df00ceed648' + 'aacddfcde926bb7c9bbec59777b7c3ca44ef97a39258ef4033c34e83c69e9fe9' '83d402a57ee31e48e70f9a8eb100468aaf1b0966974e9389fe4720e140cdc58d' 'ecf69649d3a68521a4c751ba9a337143f06258228635e6d458a33271995cdec0' '96f3fd953d77e5400714d9b20dc83d43ed43497afdeff43e58e273b3d3d87d1d') diff --git a/serviio/serviio.sh b/serviio/serviio.sh index 451a645..3293258 100644 --- a/serviio/serviio.sh +++ b/serviio/serviio.sh @@ -1,10 +1,9 @@ -#!/bin/sh +#!/usr/bin/env bash -if [ $UID -eq 0 ] -then - if [[ -f /etc/profile.d/jdk.sh ]]; then +if [ "$(id -u)" -eq "0" ]; then + if [ -f /etc/profile.d/jdk.sh ]; then . /etc/profile.d/jdk.sh - elif [[ -f /etc/profile.d/jre.sh ]]; then + elif [ -f /etc/profile.d/jre.sh ]; then . /etc/profile.d/jre.sh fi export PATH=/usr/lib/jvm/java-8-openjdk/jre/bin/:$PATH -- cgit v1.2.3-70-g09d2