Fix scratch dir creation

This commit is contained in:
Mark Vainomaa 2018-02-03 03:03:25 +02:00
parent 7cd95d5e03
commit 115104150f
Signed by: mikroskeem
GPG Key ID: 1B3F9523B542D315

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"
}