[Fai-commit] r4993 - trunk/bin
lange at alioth.debian.org
lange at alioth.debian.org
Mon Jun 16 12:29:07 UTC 2008
Author: lange
Date: 2008-06-16 12:29:06 +0000 (Mon, 16 Jun 2008)
New Revision: 4993
Modified:
trunk/bin/ftar
Log:
die with warning if suffix .tgz is found.
Modified: trunk/bin/ftar
===================================================================
--- trunk/bin/ftar 2008-06-15 10:49:12 UTC (rev 4992)
+++ trunk/bin/ftar 2008-06-16 12:29:06 UTC (rev 4993)
@@ -6,7 +6,7 @@
# ftar -- extract tar files using FAI classes
#
# This script is part of FAI (Fully Automatic Installation)
-# Copyright (C) 2001-2007 Thomas Lange, lange at informatik.uni-koeln.de
+# Copyright (C) 2001-2008 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.1, 10-nov-2007"
+version="Version 1.6.2, 16-june-2008"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
die() {
@@ -52,7 +52,7 @@
cat <<EOF
ftar, extract tar files using classes. $version
- Copyright (C) 2001-2007 by Thomas Lange
+ Copyright (C) 2001-2008 by Thomas Lange
Usage: ftar [OPTION] ... SOURCE
@@ -127,6 +127,7 @@
for c in $revclasses ; do
# what if a directory exists which is equal to the hostname or a classname?
# [ -f $fpath/$c ] && extract $fpath/$c cat
+ [ -f $fpath/$c.tgz ] && die "Suffix .tgz not supported. Use .tar.gz"
[ -f $fpath/$c.tar ] && extract $fpath/$c.tar cat
[ -f $fpath/$c.tar.gz ] && extract $fpath/$c.tar.gz zcat
[ -f $fpath/$c.tar.bz2 ] && extract $fpath/$c.tar.bz2 bzcat
More information about the Fai-commit
mailing list