Commit 582a21ae authored by Guillaume Roguez's avatar Guillaume Roguez

scripts: fix deploy

Fix platform detection conditionals

Change-Id: I8e60a838b46c32683e3f23d7bcf0f00a2ff54750
parent 226bfc82
......@@ -202,14 +202,14 @@ function deploy()
function package()
{
if [ ${DISTRIBUTION:0:6} == 'debian' || ${DISTRIBUTION:0:6} == 'ubuntu' ];
if [[ "${DISTRIBUTION:0:6}" == "debian" || "${DISTRIBUTION:0:6}" == "ubuntu" ]];
then
package_deb
elif [ ${DISTRIBUTION:0:6} == 'fedora' ];
elif [[ "${DISTRIBUTION:0:6}" == "fedora" ]];
then
package_rpm
else
echo "ERROR: Distribution '${DISTRIBUTION' is unsupported"
echo "ERROR: Distribution '${DISTRIBUTION}' is unsupported"
fi
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment