Skip to content
Snippets Groups Projects
Commit 7959d55d authored by nimrod's avatar nimrod
Browse files

Allow more fields in .prerun files.

parent f77ab12c
Branches
No related tags found
No related merge requests found
......@@ -240,7 +240,8 @@ __run_duration () {
then
local endtime starttime
endtime="$(date +%s)"
starttime="$(cat "$HOME/.prerun.$$")"
# shellcheck disable=SC1090
. "$HOME/.prerun.$$"
rm "$HOME/.prerun.$$"
echo "$(( endtime - starttime ))"
else
......@@ -249,7 +250,7 @@ __run_duration () {
}
__prerun () {
date +%s > "$HOME/.prerun.$$"
echo "starttime=$(date +%s)" > "$HOME/.prerun.$$"
}
__prompt () {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment