mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Build scripts work both in Linux and OS X now.
This commit is contained in:
@@ -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'"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user