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.
Description
When running the
get-k8s-infoscript 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.