File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ _cryptsetup_device()
1414_cryptsetup_action ()
1515{
1616 local ret IFS=$' \t\n '
17- _comp_dequote " $1 " || return 1
17+ _comp_dequote " ${1-} " || return 1
1818 local cmd=${ret:- cryptsetup}
1919 local actions=$(
2020 {
@@ -46,7 +46,7 @@ _cryptsetup_action()
4646 filtering_pattern=${filtering_pattern% $' \n ' }
4747
4848 local filtered_actions
49- filtered_actions=$( strings " $path " | grep -Fx " $filtering_pattern " | sort -u) &&
49+ filtered_actions=$( strings " $path " | command grep -Fx " $filtering_pattern " | sort -u) &&
5050 [[ $filtered_actions ]] &&
5151 actions=$filtered_actions
5252 fi
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ def test_2(self, completion):
1313 @pytest .mark .complete (
1414 "cryptsetup luksE" ,
1515 require_cmd = True ,
16- skipif = '! strings "$(type -P cryptsetup)" | grep -qFx luksErase' ,
16+ skipif = r '! { cryptsetup --help; man cryptsetup; } 2>/dev/null | command grep -qE "(^|[[:space:]]) luksErase([[:space:]]|\$)" ' ,
1717 )
1818 def test_github_issue758 (self , completion ):
1919 assert completion == "rase"
You can’t perform that action at this time.
0 commit comments