Commit dbec7c8c authored by Egor Kremnev's avatar Egor Kremnev

fix scripts

parent d72b4878
#!/usr/bin/env bash
# shellcheck disable=SC2086
set -e
echo "================================"
echo "<===== Run apply-update.sh ====>"
echo "================================"
......@@ -11,7 +13,6 @@ if [[ "$(id -u)" != "0" ]]; then
exit 1
fi
set -e
INSTANCE_NAME=${1}
LATEST_ARTIFACT_NAME=${2}
APPLICATION_ROOT_PATH=${3}
......@@ -31,11 +32,11 @@ STASH_DB_DIR=/tmp/db/
STASH_DB_PATH=${STASH_DB_DIR}database.${INSTANCE_NAME}.sqlite
info() {
echo -e "\e[33m[Info] \e[33m$1 \e[39m $(for i in {12..21} ; do echo -en "\e[33;1;${i}m.\e[0m" ; done ; echo)"
echo -e "\e[33m[Info] \e[33m$1 \e[39m $(for i in {12..21} ; do echo -en "\e[33;1;${i}m.\e[0m" ; done ; echo)"
}
success() {
echo -e "\e[32m[Success] \e[32m $1 \e[39m $(for i in {12..21} ; do echo -en "\e[32;1;${i}m.\e[0m" ; done ; echo)"
echo -e "\e[32m[Success] \e[32m $1 \e[39m $(for i in {12..21} ; do echo -en "\e[32;1;${i}m.\e[0m" ; done ; echo)"
}
cd ${APPLICATION_ROOT_PATH}
......
......@@ -46,5 +46,5 @@ php artisan dusk:chrome-driver
nohup bash -c "php artisan serve --env=dusk --port=4343 2>&1 &" && sleep 5
php artisan dusk
rm -rf database/database.*.sqlite
success "Completed testing!"
......@@ -11,11 +11,11 @@ VERSION=${2}
ENV_NAME=.env.example
info() {
echo -e "\e[33m[Info] \e[33m$1 \e[39m"
echo -e "\e[33m[Info] \e[33m$1 \e[39m"
}
success() {
echo -e "\e[32m[Success] \e[32m $1 \e[39m"
echo -e "\e[32m[Success] \e[32m $1 \e[39m"
}
info "Build version #${VERSION}"
info "./build.sh starts here..."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment