aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-06-08 19:03:47 -0300
committerEuAndreh <eu@euandre.org>2021-06-08 19:03:47 -0300
commitd358d7229458fe97ea79f341d478d5162c913bc7 (patch)
treec61ac2e8ace2011bb607c5118d33f52083a98e96 /scripts
parentsh/fzf.sh: Change path of TODOs.md (diff)
downloaddotfiles-d358d7229458fe97ea79f341d478d5162c913bc7.tar.gz
dotfiles-d358d7229458fe97ea79f341d478d5162c913bc7.tar.xz
scripts/pastebin.sh: Tweak to remove color dependency and update publishing method
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