Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
start-session: write session recording to new output path
Browse files Browse the repository at this point in the history
flihp committed Jan 12, 2025
1 parent 91ef172 commit 6e022ee
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions script/oks-lib.sh
Original file line number Diff line number Diff line change
@@ -2,6 +2,7 @@
# functions common to oks scripts

CD_DEV=/dev/cdrom
OUTPUT=/var/lib/oks

error() {
>&2 command echo ["$(date --utc +%FT%TZ)" ERROR "${0##*/}"] "$@"
4 changes: 2 additions & 2 deletions script/start-session
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ set -eou pipefail
. oks-lib.sh

info "Creating output directory."
mkdir -p output
mkdir -p $OUTPUT

info "Starting terminal session recording."
script --t=output/script-timing.log -a output/script.log
script --t="$OUTPUT"/script-timing.log -a "$OUTPUT"/script.log

0 comments on commit 6e022ee

Please sign in to comment.