granted: fix fish shell integration (#6602)

Without `$argv` the function will not pass any flags or arguments to the
`assume.fish` script.  These are necessary to use assume to access the
AWS console or use IAM role chaining.
This commit is contained in:
Raine Godmaire
2025-03-11 09:28:43 -04:00
committed by GitHub
parent 7fb8678716
commit 7fd6dc2b94

View File

@@ -33,7 +33,7 @@ in {
programs.fish.functions.assume = mkIf cfg.enableFishIntegration ''
set -x GRANTED_ALIAS_CONFIGURED "true"
source ${package}/share/assume.fish
source ${package}/share/assume.fish $argv
set -e GRANTED_ALIAS_CONFIGURED
'';
};