File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 11=== SUMMARY ===
22
3- version: 1.2.1 | home: https://github.com/makesourcenotcode/name-safe-in-bash
3+ version: 1.2.2 | home: https://github.com/makesourcenotcode/name-safe-in-bash
44
55Help choosing Bash alias and function names that WON'T come back to bite you
66later!
@@ -71,6 +71,7 @@ may be spun up as another project.
7171
7272=== CHANGELOG ===
7373
74+ v1.2.2: fix more interactivity hangups
7475v1.2.1: minor documentation fix
7576v1.2.0: fix package manager interactivity hangups
7677v1.1.2: minor documentation improvement
Original file line number Diff line number Diff line change @@ -15,14 +15,22 @@ output_commands_found_in_path(){
1515 for directory in ` echo $PATH | sed ' s/:/ /g' ` ; do
1616 ls -A $directory 2> /dev/null; done ; }
1717
18+ assert_command_exists (){ type " $1 " > /dev/null 2>&1 ;}
19+
1820output_name_if_known_to_dnf (){
19- dnf --assumeno provides " $1 " > /dev/null 2>&1 && echo " $1 " ; }
21+ assert_command_exists dnf &&
22+ dnf --assumeno provides " $1 " > /dev/null 2>&1 &&
23+ echo " $1 " ; }
2024
2125output_name_if_known_to_yum (){
22- yum --assumeno provides " $1 " > /dev/null 2>&1 && echo " $1 " ; }
26+ assert_command_exists yum &&
27+ yum --assumeno provides " $1 " > /dev/null 2>&1 &&
28+ echo " $1 " ; }
2329
2430output_name_if_known_to_zypper (){
25- zypper --non-interactive what-provides " $1 " > /dev/null 2>&1 && echo " $1 " ; }
31+ assert_command_exists zypper &&
32+ zypper --non-interactive what-provides " $1 " > /dev/null 2>&1 &&
33+ echo " $1 " ; }
2634
2735output_names_for_edit_distance_comparision () {
2836 local -r proposed_name=" $1 "
You can’t perform that action at this time.
0 commit comments