Fix sed commands
This commit is contained in:
parent
b793070dab
commit
ec72af247b
1 changed files with 5 additions and 5 deletions
10
build.mb
10
build.mb
|
@ -39,11 +39,11 @@ BRANCH=\$(git rev-parse --abbrev-ref HEAD)
|
|||
DATE=\$(date +%d.%m.%Y)
|
||||
TIME=\$(date +%H:%M:%S)
|
||||
|
||||
sed -i "" -e ''s/\\\$\\\$DATE\\\$\\\$/''"\$DATE/g" $(%output%)
|
||||
sed -i "" -e ''s/\\\$\\\$TIME\\\$\\\$/''"\$TIME/g" $(%output%)
|
||||
sed -i "" -e ''s@\\\$\\\$BRANCH\\\$\\\$@''"\$BRANCH@g" $(%output%)
|
||||
sed -i "" -e ''s@\\\$\\\$SOURCE\\\$\\\$@$(%input%)@g'' $(%output%)
|
||||
sed -i "" -e ''s/\\\$\\\$COMMIT\\\$\\\$/''"\$COMMIT_SHORT/g" $(%output%)
|
||||
sed -i ''s/\\\$\\\$DATE\\\$\\\$/''"\$DATE/g" $(%output%)
|
||||
sed -i ''s/\\\$\\\$TIME\\\$\\\$/''"\$TIME/g" $(%output%)
|
||||
sed -i ''s@\\\$\\\$BRANCH\\\$\\\$@''"\$BRANCH@g" $(%output%)
|
||||
sed -i ''s@\\\$\\\$SOURCE\\\$\\\$@$(%input%)@g'' $(%output%)
|
||||
sed -i ''s/\\\$\\\$COMMIT\\\$\\\$/''"\$COMMIT_SHORT/g" $(%output%)
|
||||
'
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue