We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0849a94 commit 571e3adCopy full SHA for 571e3ad
netepscript.sh
@@ -5,9 +5,15 @@ BLUE='\033[0;34m'
5
YELLOW='\033[1;33m'
6
RED='\033[0;31m'
7
BOLD='\033[1m'
8
-NC='\033[0m' # No Color (for reset)
+NC='\033[0m'
9
10
-VERSION=$(jq -r .version package.json)
+SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
11
+PACKAGE_JSON="$SCRIPT_DIR/package.json"
12
+if [ ! -f "$PACKAGE_JSON" ]; then
13
+ echo -e "${RED}Error: package.json not found in $PACKAGE_JSON${NC}"
14
+ exit 1
15
+fi
16
+VERSION=$(jq -r .version "$PACKAGE_JSON")
17
18
echo -e "${GREEN}=========================================================${NC}"
19
echo -e "${BLUE} ${BOLD}netepScript v${VERSION}${NC}"
0 commit comments