aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/pastebin.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/pastebin.sh b/scripts/pastebin.sh
index e12096bd..d306f878 100755
--- a/scripts/pastebin.sh
+++ b/scripts/pastebin.sh
@@ -2,8 +2,9 @@
set -eu
usage() {
- red "Missing argument <${1}>.\n"
cat <<EOF
+Missing argument <$1>.
+
Usage:
pastebin.sh <FULL_TITLE> [-|FILE]
@@ -51,7 +52,7 @@ fi
cd ~/dev/libre/website > /dev/null
[ -f "$OUT" ] && {
- red "Pastebin named $OUT already exists."
+ echo "Pastebin named $OUT already exists."
exit 1
}
@@ -78,6 +79,6 @@ EOF
git reset .
git add "$OUT"
git commit -m "$0: Auto-add $OUT"
-"$(nix-build -A publishScript)/bin/publish.sh"
+make publish
open "https://euandre.org/pastebin/$(echo "$PASTE_DATE" | tr '-' '/')/$SLUG_TITLE.html"
cd - > /dev/null