tremove unnecessary die() call - mars - superminimal static website framework
HTML git clone git://parazyd.org/mars.git
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 7ad7477ffca692abbd654d231bb55149c2ff4bbc
DIR parent 72c9cea827f5c638979a21b0961c38c767931f9d
HTML Author: parazyd <parazyd@dyne.org>
Date: Wed, 15 Feb 2017 15:24:12 +0100
remove unnecessary die() call
Diffstat:
M mars | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
---
DIR diff --git a/mars b/mars
t@@ -4,15 +4,10 @@
. ./webtree
-die() {
- printf "error\n"
- exit 1
-}
-
process() {
for dir in $tree; do
printf "\t-- /$dir --\n"
- cd $dir || die
+ cd $dir || exit 1
for page in *.md; do
if [ $(printf "%s" "$exclude" | grep "$page") ]; then