Unverified Commit 2ac07c2b authored by Aral Balkan's avatar Aral Balkan
Browse files

Update installation script to run on Linux under Bash

parent 5a03e963
#!/bin/sh
#!/bin/bash
################################################################################
#
......@@ -45,12 +45,12 @@ runIn(){
popd >/dev/null
}
# Runs the passed command, formatting the output with the passed indentation (default: 4 spaces)
indentOutput(){
commandToRun=$1
indentation=${2:-' '}
script -q /dev/null $1 | LC_ALL=C sed "s/^/${indentation} /g"
#
# Pipe commands to this function to indent their output.
#
indent() {
indentation=${1:-' '};
sed "s/^/${indentation} · /";
}
greetings(){
......@@ -126,7 +126,7 @@ install(){
echo "\n • Running installation script for ${humanName}…"
cd $relativePathToComponent
indentOutput "./install" ' '
./install | indent ' '
cd ../inspector
# Check that the installation completed successfully
......
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