arrdem / katamari

Roll up all your software into artifacts!
67 stars 4 forks source link

Fix a bug where kat would make an erroneous workdir #28

Closed arrdem closed 5 years ago

arrdem commented 5 years ago

"${KAT_SERVER_WORK_DIR}" already includes "${KAT_REPO_ROOT}", so making the directory "${KAT_REPO_ROOT}/${KAT_SERVER_WORK_DIR}" was never correct because it created a directory (with parents!) from a repeated absolute path prefix.

As "${KAT_SERVER_WORK_DIR}" is already directly assured earlier in the script, just drop this instance of the behavior altogether.

This fixes a bug where I'd see Katamari make insane paths like

+ mkdir -p /Users/reid.mckenzie/Documents/dat/git/arrdem/katamari//Users/reid.mckenzie/Documents/dat/git/arrdem/katamari/.kat.d