diff options
| author | EuAndreh <eu@euandre.org> | 2021-06-08 19:03:47 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2021-06-08 19:03:47 -0300 |
| commit | d358d7229458fe97ea79f341d478d5162c913bc7 (patch) | |
| tree | c61ac2e8ace2011bb607c5118d33f52083a98e96 /scripts | |
| parent | sh/fzf.sh: Change path of TODOs.md (diff) | |
| download | dotfiles-d358d7229458fe97ea79f341d478d5162c913bc7.tar.gz dotfiles-d358d7229458fe97ea79f341d478d5162c913bc7.tar.xz | |
scripts/pastebin.sh: Tweak to remove color dependency and update publishing method
Diffstat (limited to '')
| -rwxr-xr-x | scripts/pastebin.sh | 7 |
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 |
