* 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
17 lines
370 B
Bash
Executable File
17 lines
370 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Get the parameters
|
|
previous_head=$1
|
|
new_head=$2
|
|
is_branch_checkout=$3
|
|
|
|
# Print some info
|
|
echo "Checkout complete!"
|
|
# echo "Previous HEAD: $previous_head"
|
|
# echo "New HEAD: $new_head"
|
|
# echo "Branch checkout: $is_branch_checkout"
|
|
|
|
if [[ "$is_branch_checkout" == "1" ]]; then
|
|
find . -name "*.~[1-9]*~" -exec ./scripts/find-orphaned-versions.sh {} \;
|
|
fi
|