We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d423609 commit a83efbeCopy full SHA for a83efbe
choose.sh
@@ -46,6 +46,9 @@ main() {
46
do_launch "$category" "$gui"
47
;;
48
print)
49
+ local category="${argsCommands[1]}"
50
+
51
+ do_print "$category" "$gui"
52
53
esac
54
}
lib/do.sh
@@ -80,3 +80,15 @@ do_launch() {
80
source "$dbDir/$category/post.sh"
81
fi
82
83
84
+do_print() {
85
+ local category="$1"
86
87
+ program="$(<"$dbDir/$category/_.current")"
88
89
+ # ensure variable (we already use 'ensure_has_dot_current' in
90
+ # helper_get_category_filter; this is another safeguard)
91
+ if [ -z "$program" ]; then
92
+ log.die "$gui" "Program for '$category' is not set. Please set with 'choose set'"
93
+ fi
94
+}
0 commit comments