Skip to content

Commit

Permalink
save date as a parsable string in missions.log
Browse files Browse the repository at this point in the history
  • Loading branch information
phyver committed Jun 11, 2021
1 parent 0a849dc commit 0e26660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion start.sh
Expand Up @@ -201,7 +201,7 @@ Do you want to remove it and start a new game? [y/N]') "
mkdir -p "$GSH_HOME"

mkdir -p "$GSH_CONFIG"
date | sed 's/^/#** game started on /' > "$GSH_CONFIG/missions.log"
date "+%Y-%m-%d %H:%M:%S" | sed 's/^/#** game started on /' > "$GSH_CONFIG/missions.log"
printf "#mission action date checksum\n" >> "$GSH_CONFIG/missions.log"
awk -v seed_file="$GSH_CONFIG/PRNG_seed" 'BEGIN { srand(); printf("%s", int(2^32 * rand())) > seed_file; }'

Expand Down

0 comments on commit 0e26660

Please sign in to comment.