Skip to content

Override a script provided by dotly with a customized version #238

@fragonib

Description

@fragonib

Hi! 👋

Thank you for this effort. I think is great!

I'm trying to write a customized version of a dotly provided script using a dotfiles' script replacement that has the very same script name. I want this new version to override the one provided by dotly framework. However bin/dot command always selects the dotly version first.

It doesn't works like that because bin/dot command is pritoritizing $DOTLY_PATH over $DOTFILES_PATH (last present script file wins)

dotly/bin/dot

Line 48 in ec4be28

script_exist "$DOTFILES_PATH" "$context" "$script" && script_path="$DOTFILES_PATH"

  script_exist "$DOTFILES_PATH" "$context" "$script" && script_path="$DOTFILES_PATH"
  script_exist "$DOTLY_PATH" "$context" "$script" && script_path="$DOTLY_PATH"
  • Is this by design?
  • Is it reasonable for you to swap the folder priority?
  script_exist "$DOTLY_PATH" "$context" "$script" && script_path="$DOTLY_PATH"
  script_exist "$DOTFILES_PATH" "$context" "$script" && script_path="$DOTFILES_PATH"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions