mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
fix: trim whitespace from package data version file
This commit is contained in:
@@ -91,7 +91,8 @@ pub async fn get_data_version(id: &PackageId) -> Result<Option<String>, Error> {
|
||||
.join(id)
|
||||
.join("data")
|
||||
.join(".version");
|
||||
maybe_read_file_to_string(&path).await
|
||||
let s = maybe_read_file_to_string(&path).await?;
|
||||
Ok(s.map(|s| s.trim().to_string()))
|
||||
}
|
||||
|
||||
struct RootCommand(pub String);
|
||||
|
||||
Reference in New Issue
Block a user