[Fai-commit] r4696 - trunk/bin

lange at alioth.debian.org lange at alioth.debian.org
Sat Nov 10 21:46:26 UTC 2007


Author: lange
Date: 2007-11-10 21:46:26 +0000 (Sat, 10 Nov 2007)
New Revision: 4696

Modified:
   trunk/bin/ftar
Log:
make it a bash script


Modified: trunk/bin/ftar
===================================================================
--- trunk/bin/ftar	2007-11-10 18:17:58 UTC (rev 4695)
+++ trunk/bin/ftar	2007-11-10 21:46:26 UTC (rev 4696)
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
 
 # $Id$
 #*********************************************************************
@@ -6,7 +6,7 @@
 # ftar -- extract tar files using FAI classes
 #
 # This script is part of FAI (Fully Automatic Installation)
-# Copyright (C) 2001-2006 Thomas Lange, lange at informatik.uni-koeln.de
+# Copyright (C) 2001-2007 Thomas Lange, lange at informatik.uni-koeln.de
 # Universitaet zu Koeln
 #
 #*********************************************************************
@@ -27,7 +27,7 @@
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
 #*********************************************************************
 
-version="Version 1.6, 28-aug-2006"
+version="Version 1.6.1, 10-nov-2007"
 
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 die() {
@@ -52,7 +52,7 @@
     cat <<EOF
 ftar, extract tar files using classes. $version
 
-   Copyright (C) 2001-2006 by Thomas Lange
+   Copyright (C) 2001-2007 by Thomas Lange
 
 Usage: ftar [OPTION] ... SOURCE
 
@@ -95,7 +95,7 @@
 shift $(($OPTIND - 1))
 
 [ "$1" ] || usage
-[ -f $ENV{LOGDIR}/FAI_CLASSES ] && classes=`cat $ENV{LOGDIR}/FAI_CLASSES`
+[ -f $ENV{LOGDIR}/FAI_CLASSES ] && classes=$(< $ENV{LOGDIR}/FAI_CLASSES)
 # last class has highest priority
 
 # reverse order of classes




More information about the Fai-commit mailing list