mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 10:32:34 +00:00
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:
@@ -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
|
read -p "Do you want to build the Rust SDK from local source (yes/no) default to yes? " buildLocal
|
||||||
buildLocal=${buildLocal:-yes}
|
buildLocal=${buildLocal:-yes}
|
||||||
|
|
||||||
|
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
||||||
|
date=$(date +%Y%m%d%H%M%S)
|
||||||
|
else
|
||||||
date=$(gdate +%Y%m%d%H%M%S)
|
date=$(gdate +%Y%m%d%H%M%S)
|
||||||
|
fi
|
||||||
|
|
||||||
elementPwd=$(pwd)
|
elementPwd=$(pwd)
|
||||||
|
|
||||||
# Ask for the Rust SDK local source path
|
# Ask for the Rust SDK local source path
|
||||||
|
|||||||
Reference in New Issue
Block a user