Skip to content

Commit

Permalink
Fix wrong syntax when accessing variable
Browse files Browse the repository at this point in the history
This was the Perl way to acces an enviroment variable
I wonder why this was not discovered for so many years
  • Loading branch information
Thomas Lange committed Apr 25, 2016
1 parent 3d0b80e commit 365641d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bin/ftar
Expand Up @@ -5,7 +5,7 @@
# ftar -- extract tar files using FAI classes
#
# This script is part of FAI (Fully Automatic Installation)
# Copyright (C) 2001-2015 Thomas Lange, lange@informatik.uni-koeln.de
# Copyright (C) 2001-2016 Thomas Lange, lange@informatik.uni-koeln.de
# Universitaet zu Koeln
#
#*********************************************************************
Expand Down Expand Up @@ -65,7 +65,7 @@ usage() {
cat <<EOF
ftar, extract tar files using classes.
Copyright (C) 2001-2015 by Thomas Lange
Copyright (C) 2001-2016 by Thomas Lange
Usage: ftar [OPTION] ... SOURCE
Expand All @@ -92,6 +92,9 @@ tardone=0
single=0
ignore=0

[ -f $LOGDIR/FAI_CLASSES ] && classes=$(< $LOGDIR/FAI_CLASSES)
# last class has highest priority

while getopts 1hDdrvs:t:c:i opt ; do
case "$opt" in
d) deletefiles=1 ;;
Expand All @@ -118,9 +121,6 @@ else
xattrs=
fi

[ -f $ENV{LOGDIR}/FAI_CLASSES ] && classes=$(< $ENV{LOGDIR}/FAI_CLASSES)
# last class has highest priority

# reverse order of classes
for class in $classes; do
revclasses="$class $revclasses"
Expand Down

0 comments on commit 365641d

Please sign in to comment.