Fix up test stack (#398)

Former-commit-id: 088105c7829254fc8ff1f31b71d28fd916def7eb
This commit is contained in:
2023-05-18 13:54:27 -06:00
committed by GitHub
parent 0691c22db4
commit 87c25dfb5e
3 changed files with 15 additions and 5 deletions
@@ -1,11 +1,14 @@
#!/bin/sh
#!/usr/bin/env bash
set -e
if [ -n "$CERC_SCRIPT_DEBUG" ]; then
set -x
fi
# Test if the container's filesystem is old (run previously) or new
EXISTSFILENAME=/var/exists
echo "Test container starting"
if [[ -f "$EXISTSFILENAME" ]];
then
TIMESTAMP = `cat $EXISTSFILENAME`
TIMESTAMP=`cat $EXISTSFILENAME`
echo "Filesystem is old, created: $TIMESTAMP"
else
echo "Filesystem is fresh"