From f0b95f54a731a86ffb728ad0adf529ada8f35ed3 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Mon, 27 May 2019 12:08:54 +0200 Subject: [PATCH] warn about nonexistent paths --- home/-shrc | 1 + 1 file changed, 1 insertion(+) diff --git a/home/-shrc b/home/-shrc index 508d845..bba72a7 100644 --- a/home/-shrc +++ b/home/-shrc @@ -16,6 +16,7 @@ hash -d py=~win"/Dropbox/py" ADDPATH() { new="$(readlink -f "$1")" + [ -d "$new" ] || echo -E "ADDPATH: path doesn't exist: $new" >&2 grep ":$new:" <<<":$PATH:" >/dev/null || export PATH="$PATH:$new" } ADDPATH "$HOME/opt/local/bin"