Skip to content
Snippets Groups Projects
Commit 5283f16d authored by akiraohgaki's avatar akiraohgaki
Browse files

Fix bash scripts

parent bfc83ca5
No related branches found
No related tags found
No related merge requests found
......@@ -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}" ]; then
if [[ "${1}" = 'ci_'* || "${1}" = 'build_'* ]]; then
${1}
fi
......@@ -2,16 +2,16 @@
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
if [ ! -d "${PROJDIR}/lib/AppImageUpdate" ]; then
if [[ ! -d "${PROJDIR}/lib/AppImageUpdate" ]]; then
git clone https://github.com/AppImage/AppImageUpdate.git -b continuous --single-branch --depth=1 "${PROJDIR}/lib/AppImageUpdate"
git -C "${PROJDIR}/lib/AppImageUpdate" submodule update --init --recursive #--depth=1
fi
if [ ! -d "${PROJDIR}/lib/AppImageUpdate-prebuilt" ]; then
if [[ ! -d "${PROJDIR}/lib/AppImageUpdate-prebuilt" ]]; then
mkdir "${PROJDIR}/lib/AppImageUpdate-prebuilt"
cd "${PROJDIR}/lib/AppImageUpdate-prebuilt"
cmake "${PROJDIR}/lib/AppImageUpdate" -DUSE_SYSTEM_CURL=ON -DBUILD_CPR_TESTS=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment