This is free software. You may redistribute copies of it under the
terms of the GNU General Public License
<${yellow}http://www.gnu.org/licenses/gpl.html${normal}>. There is NO WARRANTY,
- to the extent permitted by law." | more
+ to the extent permitted by law."
}
function build_all_slackbuild {
exit $EXIT_CODE
;;
'--search'|'-s')
- [ $# -ne 2 ] && usage # two parameters is required
- LIST=`find_slackbuild $2`
- for i in $LIST; do
+ if [ $# -ne 2 ]; then
+ list_builds
+ else
+ LIST=`find_slackbuild $2`
+ for i in $LIST; do
echo $i | sed 's/.*\/\([^\/]\+\)\.[Ss]lack[Bb]uild$/ \1/'
- done
+ done
+ fi
exit $EXIT_CODE
;;
'--info'|'-f')