From 4e75f756dd607f75f0c70c51979188be233d1b90 Mon Sep 17 00:00:00 2001 From: polytan02 Date: Thu, 9 Feb 2017 18:59:17 +0000 Subject: [PATCH] Use of source_file correctly --- scripts/install | 4 ++-- scripts/upgrade | 4 ++-- sources/source_file | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/install b/scripts/install index f2b96d3..30b635b 100755 --- a/scripts/install +++ b/scripts/install @@ -99,9 +99,9 @@ sudo mkdir -p $final_path # We download the sources and check the md5sum SFILE=`sudo cat ../sources/source_file`; -sudo wget -nv -i ../sources/source_url -O $SFILE +sudo wget -nv -i ../sources/source_url -O ${SFILE}.tar.gz sudo md5sum -c ../sources/source_md5 --status || (echo "Corrupt source" >&2 && false) -sudo tar xzvf $SFILE -C ../sources/ +sudo tar xvf ${SFILE}.tar.gz -C ../sources/ sudo cp -R ../sources/$SFILE/* $final_path # Configuration diff --git a/scripts/upgrade b/scripts/upgrade index 8cde767..b9c5be4 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -60,9 +60,9 @@ sudo mkdir -p $final_path # We download the sources and check the md5sum SFILE=`sudo cat ../sources/source_file`; -sudo wget -nv -i ../sources/source_url -O $SFILE +sudo wget -nv -i ../sources/source_url -O ${SFILE}.tar.gz sudo md5sum -c ../sources/source_md5 --status || (echo "Corrupt source" >&2 && false) -sudo tar xzvf $SFILE -C ../sources/ +sudo tar xvf ${SFILE}.tar.gz -C ../sources/ sudo cp -R ../sources/$SFILE/* $final_path # Configuration diff --git a/sources/source_file b/sources/source_file index 1c51b17..a40033d 100644 --- a/sources/source_file +++ b/sources/source_file @@ -1 +1 @@ -z-push-2.3.4.tar.gz +z-push-2.3.4