Commit 73b5f1b7 authored by Ismo Puustinen's avatar Ismo Puustinen

hack/lib/init.sh: prevent splitting in 'dirname' result.

You can test this change like this: $ mkdir -p '/tmp/foo bar/x' $ cd $(dirname "/tmp/foo bar/x") bash: cd: too many arguments $ cd "$(dirname "/tmp/foo bar/x")" $ pwd /tmp/foo bar
parent 173f8e2e
......@@ -131,7 +131,7 @@ function kube::readlinkdashf {
cd "$1"
pwd -P
else
cd $(dirname "$1")
cd "$(dirname "$1")"
local f
f=$(basename "$1")
if [[ -L "$f" ]]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment