aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xhooks/demos/pretend_resume.bash.in3
1 files changed, 1 insertions, 2 deletions
diff --git a/hooks/demos/pretend_resume.bash.in b/hooks/demos/pretend_resume.bash.in
index 5e544bfa4..7c2003b17 100755
--- a/hooks/demos/pretend_resume.bash.in
+++ b/hooks/demos/pretend_resume.bash.in
@@ -24,8 +24,7 @@ if [[ -n ${template} ]]; then
file=${template}
fi
- if echo "${RESUME_COMMAND}" >"${file}"; then
- chmod 644 "${file}"
+ if touch "${file}" && chmod 644 "${file}" && echo "${RESUME_COMMAND}" >"${file}"; then
echo "Resume command saved to file: ${file}"
else
echo "Resume command NOT saved to file: ${file}"