mirror of
https://github.com/qwjyh/xdbm
synced 2025-02-23 03:27:08 +09:00
fix(status): resolve relative path in status command
This commit is contained in:
parent
47b3a5e69d
commit
bc28cc71b8
1 changed files with 2 additions and 0 deletions
|
@ -21,6 +21,8 @@ pub(crate) fn cmd_status(
|
|||
config_dir: &Path,
|
||||
) -> Result<()> {
|
||||
let path = path.unwrap_or(env::current_dir().context("Failed to get current directory.")?);
|
||||
let path = path::absolute(path).context("Failed to get absolute path")?;
|
||||
debug!("target path: {path:?}");
|
||||
let current_device = devices::get_device(config_dir)?;
|
||||
|
||||
if show_storage {
|
||||
|
|
Loading…
Reference in a new issue