mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-18 00:34:28 +08:00
getting app version from package.json
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
mode=$1;
|
||||
version=`grep "const LAB_VERSION" lab.go | awk -F '=' '{print $2}' | tr -d ' ' | tr -d '"'`;
|
||||
version=`grep '"version": ' package.json | awk -F ':' '{print $2}' | tr -d ' ' | tr -d ',' | tr -d '"'`;
|
||||
|
||||
if [ "$mode" == "--snapshot" ]; then
|
||||
version="SNAPSHOT-"`date "+%Y%m%d"`;
|
||||
|
||||
Reference in New Issue
Block a user