39 lines
411 B
Bash
Executable file
39 lines
411 B
Bash
Executable file
#!/bin/bash -x
|
|
|
|
set -e
|
|
|
|
dir=$(mktemp -d)
|
|
|
|
cd $dir
|
|
|
|
coleslaw setup
|
|
|
|
cat .coleslawrc
|
|
|
|
post=$(coleslaw new post "my first blog")
|
|
|
|
echo "my firrrrrrst text!!!!" >> "$post"
|
|
|
|
cat "$post"
|
|
|
|
coleslaw generate
|
|
|
|
coleslaw preview &
|
|
pid=$!
|
|
|
|
trap "kill $pid; rm -rf $dir" EXIT
|
|
|
|
sleep 3
|
|
|
|
wget 127.0.0.1:5000 -O-
|
|
|
|
! wget 127.0.0.1:5000/nosuchurl -O-
|
|
|
|
# (
|
|
# wget 127.0.0.1:5000/nosuchurl -O-
|
|
# echo $?
|
|
# true
|
|
# )
|
|
|
|
|
|
|