Fix build_rust_sdk.sh script to work on linux (#3291)
A few linux distributions don't have `gdate`, but I think they should all have `date`.
This commit is contained in:
parent
738295a933
commit
20d02785f9
1 changed files with 6 additions and 1 deletions
|
|
@ -7,7 +7,12 @@ set -e
|
|||
read -p "Do you want to build the Rust SDK from local source (yes/no) default to yes? " buildLocal
|
||||
buildLocal=${buildLocal:-yes}
|
||||
|
||||
date=$(gdate +%Y%m%d%H%M%S)
|
||||
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
||||
date=$(date +%Y%m%d%H%M%S)
|
||||
else
|
||||
date=$(gdate +%Y%m%d%H%M%S)
|
||||
fi
|
||||
|
||||
elementPwd=$(pwd)
|
||||
|
||||
# Ask for the Rust SDK local source path
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue