1
0
Fork 0

Escape some variables in latest post

This commit is contained in:
Daniel Kempkens 2014-12-08 12:50:23 +01:00
parent ed2fa488a7
commit fe30dbd1b5

View file

@ -18,15 +18,15 @@ The build script that is used to run Erlang tests looks like this:
{% highlight bash %} {% highlight bash %}
# Setup # Setup
source $HOME/.kerl/installs/17.3/activate source "$HOME/.kerl/installs/17.3/activate"
gitlabdir=$(basename `pwd`) gitlabdir=$(basename "$(pwd)")
appdir=$(cat src/*.app.src | tr ',' '\n' | sed '2q;d' | tr -d ' ' | tr -d '\n') appdir=$(cat src/*.app.src | tr ',' '\n' | sed '2q;d' | tr -d ' ' | tr -d '\n')
# Rename directory # Rename directory
cd .. cd ..
rm -rf $appdir rm -rf "$appdir"
mv $gitlabdir $appdir mv "$gitlabdir" "$appdir"
cd $appdir cd "$appdir"
# Run tests # Run tests
make dialyze make dialyze
@ -37,8 +37,8 @@ ls -rt $(find ./logs -name "cover.html") | tail -n 1 | xargs cat | grep -F 'Tota
# Cleanup # Cleanup
cd .. cd ..
mv $appdir $gitlabdir mv "$appdir" "$gitlabdir"
cd $gitlabdir cd "$gitlabdir"
{% endhighlight %} {% endhighlight %}
**Setup** **Setup**