diff --git a/scripts/package b/scripts/package
index 5e9cb3e45a874266796ae705905085b18c35004d..64faf49a862690966ae0f8a45d708af15f639b35 100755
--- a/scripts/package
+++ b/scripts/package
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
PKGNAME='ocs-manager'
@@ -10,7 +10,7 @@ PROJDIR="$(cd "$(dirname "${0}")/../" && pwd)"
BUILDDIR="${PROJDIR}/build_${PKGNAME}"
-ci_appimage() { # docker-image: ubuntu:14.04
+appimage() { # docker-image: ubuntu:14.04
apt update -qq
apt -y install curl git
#apt -y install build-essential qt5-default libqt5websockets5-dev
@@ -46,13 +46,13 @@ build_appimage() {
}
export_srcarchive() {
- if [[ "${1}" ]]; then
+ if [ "${1}" ]; then
$(cd "${PROJDIR}" && git archive --prefix="${PKGNAME}/" --output="${1}" HEAD)
fi
}
transfer_file() {
- if [[ -f "${1}" ]]; then
+ if [ -f "${1}" ]; then
filename="$(basename "${1}")"
transferlog="${PROJDIR}/transfer.log"
echo "Uploading ${filename}" >> "${transferlog}"
@@ -61,6 +61,6 @@ transfer_file() {
fi
}
-if [[ "${1}" = 'ci_'* || "${1}" = 'build_'* ]]; then
+if [ "${1}" ]; then
${1}
fi