summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Sharpe <sharpe@samba.org>2002-02-04 02:16:30 +0000
committerRichard Sharpe <sharpe@samba.org>2002-02-04 02:16:30 +0000
commitbff073669c9f9e6cc11541a644ad1181c123f78d (patch)
treeca0a3558a64776559e5f02c949543fd71aef477e
parented521a6b53dc4555bc7e87d73d7fd1d0f6fb69e9 (diff)
downloadsamba-bff073669c9f9e6cc11541a644ad1181c123f78d.tar.gz
samba-bff073669c9f9e6cc11541a644ad1181c123f78d.tar.xz
samba-bff073669c9f9e6cc11541a644ad1181c123f78d.zip
smbprint-new.sh was borken ... Fixed and tested ...
I will change it to the real one soon.
-rw-r--r--examples/printing/smbprint-new.sh18
1 files changed, 11 insertions, 7 deletions
diff --git a/examples/printing/smbprint-new.sh b/examples/printing/smbprint-new.sh
index 3281b1cf7c1..68bd66a13fe 100644
--- a/examples/printing/smbprint-new.sh
+++ b/examples/printing/smbprint-new.sh
@@ -75,9 +75,9 @@ config_file=$spool_dir/.config
# debug (optional)
# debugsmb (optional)
# debugfile (optional)
- $config_file
+. $config_file
-if [ "x$password" = "x"] ; then
+if [ "x$password" = "x" ] ; then
password="-N"
fi
@@ -103,12 +103,16 @@ if [ $TRANS -eq 1 ]; then
fi
debugfile="/tmp/smb-print.log"
-if [ "x$debug" = "x" -o $debug -eq 0 ] ; then
- debugfile=/dev/null debugargs=
+if [ "x$debug" = "x" ] ; then
+ debugfile=/dev/null debugargs=
else
- set -x; exec >>$debugfile 2>&1
- debugargs="$debugfile."
- #[ "x$debugsmb" == "x" ] || debugargs="$debugargs -d $debugsmb"
+ if [ $debug -eq 0 ] ; then
+ debugfile=/dev/null debugargs=
+ else
+ set -x; exec >>$debugfile 2>&1
+ debugargs="$debugfile."
+ #[ "x$debugsmb" == "x" ] || debugargs="$debugargs -d $debugsmb"
+ fi
fi
if [ "x$smbconf" != "x" ]; then