chore: fix minor install script problems (#777)

When running the install script as root (e.g. inside a Docker container), bower complained that it

"shouldn't" be run with sudo. When running the x86 install multiple times, it tried to move

Etcher-linux-ia32 inside the existing Etcher-linux-x86/ folder, rather than renaming it, which meant

later commands failed.
This commit is contained in:
Andrew Scheller 2016-10-26 19:58:47 +01:00 committed by Juan Cruz Viotti
parent 9618291f80
commit 0bbcc10cfe

View File

@ -88,7 +88,7 @@ function install {
rm -rf node_modules bower_components
npm install --build-from-source
bower install --production
bower install --production --allow-root
}
function package_x86 {
@ -107,6 +107,7 @@ function package_x86 {
--out=$output_directory
# Change ia32 suffix to x86 for consistency
rm -r $output_package
mv $output_directory/Etcher-linux-ia32 $output_package
mv $output_package/Etcher $output_package/etcher