commit 7ad7477ffca692abbd654d231bb55149c2ff4bbc
parent 72c9cea827f5c638979a21b0961c38c767931f9d
Author: parazyd <parazyd@dyne.org>
Date: Wed, 15 Feb 2017 15:24:12 +0100
remove unnecessary die() call
Diffstat:
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/mars b/mars
@@ -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