Skip to content

Commit

Permalink
pFilesearch: Msg when no searchstring (don570)
Browse files Browse the repository at this point in the history
  • Loading branch information
zigbert committed Dec 15, 2019
1 parent 8eef438 commit ae3f93d
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -10,6 +10,11 @@ export TEXTDOMAIN=pfilesearch #for gettext

case "$1" in
-search)
if [ ! "$SEARCHSTRING" ]; then
FRAME=Info; IMG=dialog-info; TXT1="$(gettext '<b>No searchstring.</b> Please define the textstring you want to search for.')";
. $PROGPATH/box_ok
exit
fi
echo false > $WORKDIR/pfilesearch-finish #used by daemons (ie Pfind) to see when to update their gui.
[ "$SEARCHPATHS" = "/ ($(gettext 'All files'))" ] && SEARCHPATHS="/"
[ "$SEARCHPATHS" = "/" ] && TMP="$(gettext 'All files')" || TMP="$SEARCHPATHS"
Expand Down

0 comments on commit ae3f93d

Please sign in to comment.