Skip to content

Commit

Permalink
Fix start_container
Browse files Browse the repository at this point in the history
  • Loading branch information
JafarAbdi committed Feb 19, 2025
1 parent dee8905 commit e229223
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fish/config.fish
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ function start_container -d "Start a podman|docker image with gpu support"
set container_name $argv[3]
end
set -l dry_run false
if test $argv[4] = "--dry-run"
if test (count $argv) -eq 4 && test $argv[4] = "--dry-run"
set dry_run true
end
if contains -- $container_name (eval '$containerprg container list --all --format "{{.Names}}"')
Expand Down

0 comments on commit e229223

Please sign in to comment.