diff --git a/Telegram/build/makefile_static.sh b/Telegram/build/makefile_static.sh index 7470b237d4..64a6a50c75 100755 --- a/Telegram/build/makefile_static.sh +++ b/Telegram/build/makefile_static.sh @@ -41,7 +41,7 @@ Replace () { CheckCount=$(eval $CheckCommand) if [ "$CheckCount" -gt 0 ]; then echo "Requested '$1' to '$2', found - replacing.." - ReplaceCommand="sed -i '' 's/$1/$2/g' Makefile" + ReplaceCommand="sed -i'.~' 's/$1/$2/g' Makefile" eval $ReplaceCommand else echo "Skipping '$1' to '$2'" diff --git a/Telegram/build/set_version.sh b/Telegram/build/set_version.sh index dd211c1391..3cb3c49bec 100755 --- a/Telegram/build/set_version.sh +++ b/Telegram/build/set_version.sh @@ -82,7 +82,7 @@ repl () { CheckCount=`eval $CheckCommand` set -e if [ "$CheckCount" -gt 0 ]; then - ReplaceCommand="sed -i '' 's/$Pattern/$Replacement/g' $File" + ReplaceCommand="sed -i'.~' 's/$Pattern/$Replacement/g' $File" eval $ReplaceCommand else echo "Not found $Pattern"