Skip to content

Commit

Permalink
fix: state_home path not right
Browse files Browse the repository at this point in the history
  • Loading branch information
someoneonsmile committed Oct 19, 2024
1 parent 23ed831 commit b7ae6af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub(crate) const PACK_STATE_HOME: &str = formatcp!(
PACK_ID_ENV
);

pub(crate) const PACK_TRACK_FILE: &str = formatcp!("${{{}}}/track.toml", PACK_STATE_HOME);
pub(crate) const PACK_TRACK_FILE: &str = formatcp!("{}/track.toml", PACK_STATE_HOME);

/// if the value of Some(value) is !, it is equivalent to None.
pub(crate) const UNSET_VALUE: &str = "!";
Expand All @@ -30,7 +30,7 @@ pub(crate) const GLOBAL_CONFIG_FILE: &str = "${XDG_CONFIG_HOME:-~/.config}/stow-
// - default -
// ----------------------------------------------------------------------

pub(crate) const DEFAULT_PACK_DECRYPT: &str = formatcp!("${{{}}}/decrypted/", PACK_STATE_HOME);
pub(crate) const DEFAULT_PACK_DECRYPT: &str = formatcp!("{}/decrypted/", PACK_STATE_HOME);

pub(crate) const DEFAULT_PACK_TARGET: &str =
formatcp!("${{XDG_CONFIG_HOME:-~/.config}}/${{{}}}/", PACK_NAME_ENV);
Expand Down

0 comments on commit b7ae6af

Please sign in to comment.