mirror of
https://github.com/guezoloic/serverconfig.git
synced 2026-03-28 18:03:49 +00:00
fix(utils.sh): PROJECT_DIR: readonly variable resolved
This commit is contained in:
4
utils.sh
4
utils.sh
@@ -4,8 +4,10 @@
|
|||||||
# This script acts as a library (utils.sh) for other monitoring scripts.
|
# This script acts as a library (utils.sh) for other monitoring scripts.
|
||||||
# It handles logging, environment variables, and Telegram notifications.
|
# It handles logging, environment variables, and Telegram notifications.
|
||||||
|
|
||||||
|
if [ -z "${PROJECT_DIR:-}" ]; then
|
||||||
PROJECT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
PROJECT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
readonly PROJECT_DIR 2>/dev/null
|
readonly PROJECT_DIR
|
||||||
|
fi
|
||||||
|
|
||||||
readonly PROJECT_NAME="serverconfig" 2>/dev/null
|
readonly PROJECT_NAME="serverconfig" 2>/dev/null
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user