mirror of
https://github.com/absmach/supermq.git
synced 2026-06-23 06:40:19 +00:00
NOISSUE - Fix SMQ fetch script (#93)
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com>
This commit is contained in:
+3
-2
@@ -12,13 +12,14 @@ set -o pipefail
|
||||
REPO_URL=https://github.com/absmach/supermq
|
||||
TEMP_DIR="supermq"
|
||||
DOCKER_DIR="docker"
|
||||
DOCKER_DST_DIR="../docker"
|
||||
DEST_DIR="../../docker/supermq-docker"
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
cd "$SCRIPT_DIR" || exit 1
|
||||
|
||||
if [ -n "$(git status --porcelain)" ]; then
|
||||
echo "There are uncommitted changes. Please commit or stash them before running this script."
|
||||
if [ -n "$(git status --porcelain "$DOCKER_DST_DIR")" ]; then
|
||||
echo "There are uncommitted changes in '$DOCKER_DIR' dir. Please commit or stash them before running this script."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user