"skip" calculation fixed
authorAlex Kirhenshtein <alk@netxms.org>
Thu, 7 Jun 2007 22:49:04 +0000 (22:49 +0000)
committerAlex Kirhenshtein <alk@netxms.org>
Thu, 7 Jun 2007 22:49:04 +0000 (22:49 +0000)
tools/sharIt

index 4eb044f..6a380e0 100755 (executable)
@@ -36,7 +36,7 @@ if [ $? != 0 ]; then
        fi
 fi
 
-skip=`echo \`wc -l stub.sh|cut -d " " -f 1\``
+skip=`echo \`wc -l $stub|awk '{ print $1 }'\``
 
 if [ "x$BASH" == "x" ]; then
        skip1=`let $skip+1`