Skip to content

Commit

Permalink
fix(update-alternatives): suppress error for non-existent directory
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Sep 25, 2023
1 parent 75b36b2 commit adbdab8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion completions/update-alternatives
Expand Up @@ -13,7 +13,7 @@ _comp_cmd_update_alternatives__installed()
break
fi
done
_comp_compgen_split -- "$(command ls "$admindir")"
[[ -d $admindir ]] && _comp_compgen_split -- "$(command ls "$admindir")"
}

_comp_cmd_update_alternatives()
Expand Down

0 comments on commit adbdab8

Please sign in to comment.