Fix scratch dir creation
This commit is contained in:
parent
7cd95d5e03
commit
115104150f
@ -6,9 +6,9 @@
|
|||||||
function new-scratch {
|
function new-scratch {
|
||||||
local SCRATCH="${HOME}/scratch"
|
local SCRATCH="${HOME}/scratch"
|
||||||
local NEW_SCRATCH="${HOME}/tmp/scratch_$(date "+%s")"
|
local NEW_SCRATCH="${HOME}/tmp/scratch_$(date "+%s")"
|
||||||
__zspr_mkdir "${NEW_SCRATCH}"
|
mkdir -p "${NEW_SCRATCH}"
|
||||||
ln -nfs "${NEW_SCRATCH}" "${SCRATCH}"
|
ln -nfs "${NEW_SCRATCH}" "${SCRATCH}"
|
||||||
pushd "${SCRATCH}" > /dev/null
|
pushd "${SCRATCH}/" >/dev/null
|
||||||
printf "New scratch dir ready for grinding ;>\n\n"
|
printf "New scratch dir ready for grinding ;>\n\n"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user