aboutsummaryrefslogtreecommitdiff
path: root/seen.sh
diff options
context:
space:
mode:
Diffstat (limited to 'seen.sh')
-rwxr-xr-xseen.sh5
1 files changed, 0 insertions, 5 deletions
diff --git a/seen.sh b/seen.sh
index d2bf94c..5653dd7 100755
--- a/seen.sh
+++ b/seen.sh
@@ -11,7 +11,6 @@
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
-
usage() {
echo "Usage : ./seen [OPTIONS]"
echo "--help : Print this help message"
@@ -19,14 +18,11 @@ usage() {
echo "--license : Show license"
echo "--rss : Create an RSS feed (runs ./rs.sh)"
}
-
die() {
echo "-> [$(date +%R)] (!) ERROR: Unexpected error, please report : $1 (!)"
exit 1
}
-
echo "Seen, a simple static blog generator"
-
if [ "$1" = "--clear" ]; then
echo "-> [$(date +%R)] Deleting generated blog ..."
rm -Rf www/* || die "Cannot delete generated blog!"
@@ -77,6 +73,5 @@ do
-e "s@description-of-article@${desc}@" \
"templates/article.html">> "www/index.html" || die "Cannot add entry to index.html!"
done
-
# Insert the footer into the index.html
cat "templates/footer.html" >> "www/index.html"