From 4a30494cb4c88cc0cdfaff6c76c7c6fc759966f0 Mon Sep 17 00:00:00 2001 From: Salt Date: Tue, 27 Nov 2018 23:34:24 -0600 Subject: [PATCH] .functions: Fix making a really wonky directory loloops --- .functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.functions b/.functions index 13912b52..f1cc3480 100644 --- a/.functions +++ b/.functions @@ -11,7 +11,7 @@ proj() { return 1 fi # POSIX mandates this external call to sed - projname="echo \"$1\" | sed 's/[^ a-zA-Z0-9.]//g'" + projname="$(echo "$1" | sed 's/[^ a-zA-Z0-9.]//g')" projdir="$HOME/Projects/$projname" # Ensure we have a ~/Projects directory mkdir -p "$HOME/Projects" > /dev/null 2>&1