Skip to content

Commit

Permalink
changed log of times to suspend/resume to include previous events (vi…
Browse files Browse the repository at this point in the history
…a adding --append to tee)
  • Loading branch information
mars4science committed Dec 13, 2023
1 parent 72c060d commit c3334f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions systemd_on_resume_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ file_contents='#!/bin/sh
case $1 in
pre)
date --iso-8601=seconds | tee /tmp/amendediso_suspended_datetime.txt
date --iso-8601=seconds | tee --append /tmp/amendediso_suspended_datetime.txt
;;
post)
date --iso-8601=seconds | tee --append /tmp/amendediso_suspended_datetime.txt ;;
echo "$(date --iso-8601=seconds) resumed" | tee --append /tmp/amendediso_suspended_datetime.txt ;;
esac'

file_name=suspended_datetime
Expand Down

0 comments on commit c3334f7

Please sign in to comment.