aboutsummaryrefslogtreecommitdiff
path: root/sh/shrc.d
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-03-24 11:10:10 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-03-24 11:10:10 +1300
commit89f185d62638c682fc363d4747d8cef9c7f39fd5 (patch)
treea30836b1af7b025a9f282c634fe3c7b73b6b767c /sh/shrc.d
parentLots of Makefile tidying (diff)
downloaddotfiles-89f185d62638c682fc363d4747d8cef9c7f39fd5.tar.gz
dotfiles-89f185d62638c682fc363d4747d8cef9c7f39fd5.zip
Remove double-up colon check in path()
Diffstat (limited to 'sh/shrc.d')
-rw-r--r--sh/shrc.d/path.sh8
1 files changed, 0 insertions, 8 deletions
diff --git a/sh/shrc.d/path.sh b/sh/shrc.d/path.sh
index 2759e11f..79b48fd5 100644
--- a/sh/shrc.d/path.sh
+++ b/sh/shrc.d/path.sh
@@ -1,14 +1,6 @@
# Function to manage contents of PATH variable within the current shell
path() {
- # The second argument, the directory, can never have a colon
- case $2 in
- *:*)
- printf >&2 'path(): %s illegal colon\n' "$2"
- return 2
- ;;
- esac
-
# Check first argument to figure out operation
case $1 in