[Fuego] [PATCH 29/30] tarball: simplify extraction
Daniel Sangorrin
daniel.sangorrin at toshiba.co.jp
Mon Jun 4 07:18:03 UTC 2018
Signed-off-by: Daniel Sangorrin <daniel.sangorrin at toshiba.co.jp>
---
engine/scripts/functions.sh | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/engine/scripts/functions.sh b/engine/scripts/functions.sh
index 68e31e7..ad34ff5 100755
--- a/engine/scripts/functions.sh
+++ b/engine/scripts/functions.sh
@@ -87,13 +87,7 @@ function untar {
is_empty "$tarball"
echo "Unpacking $tarball"
- case ${tarball/*./} in
- gz|tgz) key=z ;;
- bz2) key=j ;;
- tar) key= ;;
- *) echo "Unknown $tarball file format. Not unpacking."; return 1;;
- esac
- tar ${key}xf $TEST_HOME/$tarball --strip-components=1
+ tar xvf $TEST_HOME/$tarball --strip-components=1
}
# Unpacks/clones the test source code into the current directory.
--
2.7.4
More information about the Fuego
mailing list