Fix scratch dir creation

This commit is contained in:
2018-02-03 03:03:25 +02:00
parent 7cd95d5e03
commit 115104150f

View File

@@ -6,9 +6,9 @@
function new-scratch {
local SCRATCH="${HOME}/scratch"
local NEW_SCRATCH="${HOME}/tmp/scratch_$(date "+%s")"
__zspr_mkdir "${NEW_SCRATCH}"
mkdir -p "${NEW_SCRATCH}"
ln -nfs "${NEW_SCRATCH}" "${SCRATCH}"
pushd "${SCRATCH}" > /dev/null
pushd "${SCRATCH}/" >/dev/null
printf "New scratch dir ready for grinding ;>\n\n"
}