dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 5e664ba04167b5e7f39e7466fc2406d7e6db26de
parent 4cba49bf1158bec13926526fb503cf66d5415a66
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Mon, 16 Dec 2019 09:47:32 +0100

Change upload script to ISC, update contact info

Diffstat:
M.local/bin/upload | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/.local/bin/upload b/.local/bin/upload @@ -35,14 +35,14 @@ show_help() { show_version() { echo "${0##*/} version $version" - echo "Licensed under the GNU Public License, v3+" + echo "Licensed under the ISC License" echo "written by Anders Damsgaard, anders@adamsgaard.dk" - echo "https://gitlab.com/admesg/dotfiles" + echo "https://src.adamsgaard.dk/dotfiles" } check_if_image() { if [ -f "$1" ]; then - identify "$1" >/dev/null 2>&1 || die "Error: $1 is not an image" + identify "$1" >/dev/null 2>&1 || die "error: $1 is not an image" fi } @@ -116,7 +116,7 @@ download_file() { elif command -v wget >/dev/null 2>&1; then wget "$url" else - die 'Error: no download program found' + die 'error: no download program found' fi } @@ -181,7 +181,7 @@ while :; do break ;; -?*) - die 'Error: Unknown option specified' + die 'error: Unknown option specified' ;; *) # No more options break @@ -218,7 +218,7 @@ else upload_file "$tempfile" "$(basename "$1")" else for f in "$@"; do - [ ! -f "$f" ] && die "Error: $f is not a file" + [ ! -f "$f" ] && die "error: $f is not a file" tempfile="$(mktemp)" cp "$f" "$tempfile" preprocess_file "$tempfile" "$1"