chore(tools): taos tools mac for3.0 (#13752)
* chore(release): make get_os.sh works on mac * chore(tools): update taos-tools
This commit is contained in:
parent
43651032ee
commit
59981d40c3
|
@ -4,11 +4,16 @@
|
||||||
# is required to use systemd to manage services at boot
|
# is required to use systemd to manage services at boot
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
# set -x
|
#set -x
|
||||||
|
|
||||||
# -----------------------Variables definition---------------------
|
# -----------------------Variables definition---------------------
|
||||||
OS=$(cat /etc/*-release | grep "^NAME=" | cut -d= -f2)
|
|
||||||
len=$(echo ${#OS})
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||||
len=$((len-2))
|
echo -e "Darwin"
|
||||||
retval=$(echo -ne ${OS:1:${len}} | cut -d" " -f1)
|
else
|
||||||
echo -ne $retval
|
OS=$(cat /etc/*-release | grep "^NAME=" | cut -d= -f2)
|
||||||
|
len=$(echo ${#OS})
|
||||||
|
len=$((len-2))
|
||||||
|
retval=$(echo -ne ${OS:1:${len}} | cut -d" " -f1)
|
||||||
|
echo -ne $retval
|
||||||
|
fi
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 1446be95164e6cda3ff88270f7cfa50d8430503f
|
Subproject commit 3d5aa76f8c718dcffa100b45e4cbf313d499c356
|
Loading…
Reference in New Issue