From 998ca752637ab15e594716af981337650e5ade3f Mon Sep 17 00:00:00 2001 From: Denis Benato Date: Wed, 31 Jul 2024 17:28:07 +0200 Subject: [PATCH] Add a deprecation note to old commands and prevent them from running --- frzr-bootstrap | 5 +++++ frzr-deploy | 5 +++++ frzr-unlock | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/frzr-bootstrap b/frzr-bootstrap index 083f0d0..0667c93 100755 --- a/frzr-bootstrap +++ b/frzr-bootstrap @@ -1,5 +1,10 @@ #! /bin/bash +if [ -z "$MOUNT_PATH" ]; then + echo "WARNING: frzr-bootstrap is being deprecated and will be removed on a future version: use frzr bootstrap instead. See frzr help." + exit 1 +fi + source "${BASH_SOURCE%/*}/__frzr-bootstrap" # TODO: check the file lock exists diff --git a/frzr-deploy b/frzr-deploy index 7edb6f4..7ac208e 100755 --- a/frzr-deploy +++ b/frzr-deploy @@ -1,5 +1,10 @@ #! /bin/bash +if [ -z "$MOUNT_PATH" ]; then + echo "WARNING: frzr-deploy is being deprecated and will be removed on a future version: use frzr deploy instead. See frzr help." + exit 1 +fi + source "${BASH_SOURCE%/*}/__frzr-deploy" # TODO: check the file lock exists diff --git a/frzr-unlock b/frzr-unlock index 509e3e3..e8d4301 100755 --- a/frzr-unlock +++ b/frzr-unlock @@ -1,5 +1,10 @@ #! /bin/bash +if [ -z "$MOUNT_PATH" ]; then + echo "WARNING: frzr-unlock is being deprecated and will be removed on a future version: use frzr unlock instead. See frzr help." + exit 1 +fi + source "${BASH_SOURCE%/*}/__frzr-unlock" # TODO: check the file lock exists