From 53343fedc06fc1c837615e53cc2b310b8785e6c6 Mon Sep 17 00:00:00 2001 From: hackbard Date: Tue, 25 Feb 2003 03:59:28 +0000 Subject: [PATCH] oups, first wrapper ;) --- showdir | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 showdir diff --git a/showdir b/showdir new file mode 100755 index 0000000..2e7d71b --- /dev/null +++ b/showdir @@ -0,0 +1,26 @@ +#!/bin/sh + +# author: hackbard +# searches for pictures to present + +usage() { + echo "$0 usage: $0 " + echo +} + +if [ "$#" <= "2" ]; then + usage + exit 0 +fi + +dir="$2" + +files=`find $dir -name '*.jpg'` +files="$files +`find $dir -name '*.JPG'`" + +./dfb-photoshow $1 $files + +echo +echo done + -- 2.39.2