Skip to content

Feature Request: Retain passed parameters/arguments when script auto-updates #6

@PrNSchmiederer

Description

@PrNSchmiederer

Description

When running the get-k8s-info script with specific parameters, the script sometimes detects a newer version and triggers an automatic update. However, after downloading the update and restarting/re-executing, the originally passed parameters are lost.

Expected Behavior

Ideally, when the script self-updates and relaunches, it should forward the originally passed arguments/flags to the new execution loop so the user does not have to run the command a second time manually.

Actual Behavior

The script updates, but the user-defined parameters are discarded during the restart, requiring a manual re-run with the desired arguments.

Proposed Solution (Example)

Before executing the update mechanism or the relaunch, the script could capture the current arguments (e.g., using $@ in Bash) and append them to the final restart command.

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