* Add a call to check for orphaned versions after any checkout * use == instead of -eq for optional * Add a scripts/install-repo-checks for things to run after checkout; only this versioning error checked for now
10 lines
152 B
Bash
Executable File
10 lines
152 B
Bash
Executable File
#/bin/sh
|
|
# $1 is a versioned file name
|
|
|
|
ver="$1"
|
|
base="${ver%%.~[1-9]*~}"
|
|
if [ ! -f "$base" ]; then
|
|
echo "Orphaned version: $ver but no $base"
|
|
fi
|
|
|