Skip to content

Commit adbdab8

Browse files
committed
fix(update-alternatives): suppress error for non-existent directory
1 parent 75b36b2 commit adbdab8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

completions/update-alternatives

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ _comp_cmd_update_alternatives__installed()
1313
break
1414
fi
1515
done
16-
_comp_compgen_split -- "$(command ls "$admindir")"
16+
[[ -d $admindir ]] && _comp_compgen_split -- "$(command ls "$admindir")"
1717
}
1818

1919
_comp_cmd_update_alternatives()

0 commit comments

Comments
 (0)