if [ -n "$origin" ]; then
if [ -n "$current" ]; then
- echo "UNKNOWN ERROR (both origin and current)" >&2
+ echo "Config error (both origin and current)" >&2
exit 1
else
- cd "$origin" || exit 1
+ cd "$origin" &&
exec ./update
fi
elif [ -z "$current" ]; then
- echo "UNKNOWN ERROR (neither origin nor current)" >&2
+ echo "Wrong directory error (neither origin nor current)" >&2
exit 1
fi