fi
done
+ submit_cleanup
cd $WORK
- # remove files that should not be stored at the mkbuilds repository
- if [ "$(cd $(dirname $MKBUILD_PATH) ; pwd)" == "$WORK" ]; then
- rm -f *.old *.tmp *.SlackBuild *.slack-required
- fi
-
}
function submit_mkbuild {
fi
done
+ submit_cleanup
cd $WORK
+}
+
+function submit_cleanup {
+
# remove files that should not be stored at the mkbuilds repository
if [ "$(cd $(dirname $MKBUILD_PATH) ; pwd)" == "$WORK" ]; then
- rm -f *.old *.tmp *.SlackBuild *.slack-required
+ (
+ cd $WORK
+ rm -f *.old *.tmp *.SlackBuild *.slack-required
+ )
fi
}