if [ -n "$origin" ]; then
if [ -n "$current" ]; then
- echo "UNKNOWN ERROR"
+ echo "UNKNOWN ERROR (both origin and current)"
else
echo "This script must be run in the origin directory: $origin"
fi >&2
exit 1
elif [ -z "$current" ]; then
- echo "UNKNOWN ERROR" >&2
+ echo "UNKNOWN ERROR (neither origin nor current)" >&2
exit 1
fi