diff --git a/.emacs.d/snippets/sh-mode/check b/.emacs.d/snippets/sh-mode/check index 3181b406..03962746 100644 --- a/.emacs.d/snippets/sh-mode/check +++ b/.emacs.d/snippets/sh-mode/check @@ -5,7 +5,7 @@ check() { for i ; do if ! command -v \$i >/dev/null 2>&1; then - echo >&2 "\'$i' not found in PATH. Exiting." + echo "\'$i' not found in PATH. Exiting." >&2 exit 1 fi done diff --git a/.emacs.d/snippets/sh-mode/listcopy b/.emacs.d/snippets/sh-mode/listcopy deleted file mode 100644 index df4a72bf..00000000 --- a/.emacs.d/snippets/sh-mode/listcopy +++ /dev/null @@ -1,11 +0,0 @@ -# name: copy list of files -# key: listcopy -# -- -SOURCE="$HOME" -DEST="$TEMP" -while read -r i; do - mkdir -p "$DEST/$(dirname "$i")" - cp -v "$SOURCE/$i" "$DEST/$(dirname "$i")" -done </dev/null 2>&1; then - echo >&2 "'$1' not found in PATH. Exiting." + echo "'$1' not found in PATH. Exiting." >&2 exit 1 fi diff --git a/.emacs.d/snippets/sh-mode/null b/.emacs.d/snippets/sh-mode/null index a6e229f8..49e0a9c6 100644 --- a/.emacs.d/snippets/sh-mode/null +++ b/.emacs.d/snippets/sh-mode/null @@ -1,4 +1,4 @@ # name: >/dev/null # key: null # -- ->/dev/null$0 +>/dev/null 2>&1$0