Skip to content
Snippets Groups Projects
Commit 582a21ae authored by Guillaume Roguez's avatar Guillaume Roguez
Browse files

scripts: fix deploy

Fix platform detection conditionals

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