[Fai-commit] r3805 - trunk/bin

fai-commit at lists.alioth.debian.org fai-commit at lists.alioth.debian.org
Mon Aug 28 12:53:50 UTC 2006


Author: lange
Date: 2006-08-28 12:53:50 +0000 (Mon, 28 Aug 2006)
New Revision: 3805

Modified:
   trunk/bin/ftar
Log:
fix exit code when no matching class was found


Modified: trunk/bin/ftar
===================================================================
--- trunk/bin/ftar	2006-08-28 11:27:57 UTC (rev 3804)
+++ trunk/bin/ftar	2006-08-28 12:53:50 UTC (rev 3805)
@@ -6,7 +6,7 @@
 # ftar -- extract tar files using FAI classes
 #
 # This script is part of FAI (Fully Automatic Installation)
-# Copyright (C) 2001-2005 Thomas Lange, lange at informatik.uni-koeln.de
+# Copyright (C) 2001-2006 Thomas Lange, lange at informatik.uni-koeln.de
 # Universitaet zu Koeln
 #
 #*********************************************************************
@@ -27,7 +27,7 @@
 # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 #*********************************************************************
 
-version="Version 1.5.4, 23-nov-2005"
+version="Version 1.6, 28-aug-2006"
 
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 die() {
@@ -52,7 +52,7 @@
     cat <<EOF
 ftar, extract tar files using classes. $version
 
-   Copyright (C) 2001-2005 by Thomas Lange
+   Copyright (C) 2001-2006 by Thomas Lange
 
 Usage: ftar [OPTION] ... SOURCE
 
@@ -132,5 +132,10 @@
     [ -f $fpath/$c.tar.bz2 ]  && extract $fpath/$c.tar.bz2 bzcat
 done
 
-[ $tardone -eq 0 ] && echo "ftar: No matching class found in $fpath"
-exit 0
+if [ $tardone -eq 0 ]; then
+    echo "ftar: No matching class found in $fpath"
+    exit 1
+else
+    exit 0
+fi
+




More information about the Fai-commit mailing list