mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2024-10-01 06:55:46 -04:00
darwin-specific sed
This commit is contained in:
parent
d851acc7e9
commit
ed72de952a
@ -34,7 +34,13 @@ get_current_version() {
|
||||
# Function to update the version in pubspec.yaml
|
||||
update_version() {
|
||||
local new_version=$1
|
||||
sed -i "s/version: .*/version: ${new_version}/" pubspec.yaml
|
||||
|
||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
SED_CMD="sed -i ''"
|
||||
else
|
||||
SED_CMD="sed -i"
|
||||
fi
|
||||
eval "$SED_CMD 's/version: .*/version: ${new_version}/' pubspec.yaml"
|
||||
}
|
||||
|
||||
# I pray none of this errors! - I think it should popup an error should that happen..
|
||||
|
Loading…
Reference in New Issue
Block a user