diff --git a/scripts/package.sh b/scripts/package.sh index c1f07f619f7ef29e5efe677425cba8f706158a6c..9aab1b55b254bb8e37daa3a84f61f44e3433f5c2 100644 --- a/scripts/package.sh +++ b/scripts/package.sh @@ -105,13 +105,13 @@ build_archlinux_pkg() { } 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}" @@ -120,6 +120,6 @@ transfer_file() { fi } -if [ "${1}" ]; then +if [[ "${1}" = 'ci_'* || "${1}" = 'build_'* ]]; then ${1} fi diff --git a/scripts/prepare.sh b/scripts/prepare.sh index b97eb7a293709ee3e23d12f486cb4d44b6dfebc8..26097fb7423b5145cf76adca060a5acea9db5021 100644 --- a/scripts/prepare.sh +++ b/scripts/prepare.sh @@ -2,6 +2,6 @@ PROJDIR="$(cd "$(dirname "${0}")/../" && pwd)" -if [ ! -d "${PROJDIR}/lib/qtil" ]; then +if [[ ! -d "${PROJDIR}/lib/qtil" ]]; then git clone https://github.com/akiraohgaki/qtil.git -b release-0.3.0 --single-branch --depth=1 "${PROJDIR}/lib/qtil" fi