mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-04 22:39:46 +00:00
remove scripts volume
This commit is contained in:
@@ -107,19 +107,7 @@ pub fn pack(#[context] ctx: SdkContext, #[arg] path: Option<PathBuf>) -> Result<
|
||||
})
|
||||
.scripts({
|
||||
let mut scripts = tar::Builder::new(Vec::new());
|
||||
|
||||
for (script_volume, _) in manifest
|
||||
.volumes
|
||||
.iter()
|
||||
.filter(|(_, v)| matches!(v, &&Volume::Scripts {}))
|
||||
{
|
||||
scripts.append_dir_all(
|
||||
script_volume,
|
||||
path.join(manifest.assets.scripts_path())
|
||||
.join(script_volume),
|
||||
)?;
|
||||
}
|
||||
|
||||
scripts.append_dir_all(script_volume, path.join(manifest.assets.scripts_path()))?;
|
||||
std::io::Cursor::new(scripts.into_inner()?)
|
||||
})
|
||||
.build()
|
||||
|
||||
Reference in New Issue
Block a user