.functions: Fix making a really wonky directory
loloops
This commit is contained in:
parent
20d704e9f9
commit
4a30494cb4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user