10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-11-12 17:13:54 +01:00
quantum_package/scripts/upgrade/upgrade_ezfio.sh
2015-06-08 14:49:10 +02:00

27 lines
546 B
Bash
Executable File

#!/bin/bash
#
# Upgrades the EZFIO library from the web.
# Tue Nov 4 00:53:13 CET 2014
if [[ -z ${QP_ROOT} ]]
then
print "The QP_ROOT environment variable is not set."
print "Please reload the quantum_package.rc file."
fi
cd -- ${QP_ROOT}
mv -- ${QP_ROOT}/EZFIO ${QP_ROOT}/EZFIO.old
${QP_ROOT}/scripts/install/install_ezfio.sh
if [[ $? -eq 0 ]]
then
rm -rf -- ${QP_ROOT}/EZFIO.old
echo "Successfully updated EZFIO"
else
rm -rf -- ${QP_ROOT}/EZFIO
mv -- ${QP_ROOT}/EZFIO.old ${QP_ROOT}/EZFIO
echo "Failed to update EZFIO"
fi