forked from rho_n/hpr_generator
Improve function messages
This commit is contained in:
parent
094287837c
commit
e7e752f1e8
@ -72,7 +72,8 @@ function clean_working_dir {
|
|||||||
rm -rf $1
|
rm -rf $1
|
||||||
echo "Deleted temp working directory $1"
|
echo "Deleted temp working directory $1"
|
||||||
else
|
else
|
||||||
echo "Not a temporary directory: $1"
|
echo "Did not delete directory: $1"
|
||||||
|
echo "Not a temporary directory."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -100,15 +101,17 @@ function download_hpr_sql {
|
|||||||
echo "Removing temporary hpr.sql"
|
echo "Removing temporary hpr.sql"
|
||||||
rm $1/hpr.sql
|
rm $1/hpr.sql
|
||||||
else
|
else
|
||||||
echo "No temporary hpr.sql found"
|
echo "No temporary hpr.sql to remove"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$CURL" != "" ];
|
if [ "$CURL" != "" ];
|
||||||
then
|
then
|
||||||
curl $HPR_URL --output $1/hpr.sql
|
curl $HPR_URL --output $1/hpr.sql
|
||||||
|
echo "Downloaded hpr.sql via curl"
|
||||||
elif [ "$WGET" != "" ];
|
elif [ "$WGET" != "" ];
|
||||||
then
|
then
|
||||||
wget --directory-prefix=$1 $HPR_URL
|
wget --directory-prefix=$1 $HPR_URL
|
||||||
|
echo "Downloaded hpr.sql via wget"
|
||||||
else
|
else
|
||||||
echo "Could not download file. Please install either curl or wget."
|
echo "Could not download file. Please install either curl or wget."
|
||||||
return 1
|
return 1
|
||||||
|
Loading…
Reference in New Issue
Block a user