refactor: improve bash code (#125)
* refactor: extract guard_path to utils/guard_path.sh * add utils/guard_operation.sh
This commit is contained in:
@@ -63,7 +63,7 @@ end
|
||||
fi
|
||||
fi
|
||||
if [[ -z "$json_type" ]]; then
|
||||
echo "invalid JSON data"
|
||||
echo "error: invalid JSON data" >&2
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user