Ind.ie is now Small Technology Foundation.
Commit 9c0e7d65 authored by Aral Balkan's avatar Aral Balkan

Change indent function to work on Linux

parent 4b196aba
......@@ -202,13 +202,11 @@ runIn(){
}
#
# Runs the passed command, formatting the output with the passed indentation (default: 4 spaces)
# Pipe commands to this function to indent their output.
#
indentOutput(){
commandToRun=$1
indentation=${2:-' '}
script -q /dev/null $1 | LC_ALL=C sed "s/^/${indentation} · /g"
indent() {
indentation=${1:-' '};
sed "s/^/${indentation} · /";
}
#
......@@ -250,7 +248,7 @@ install(){
echo -e "\n • Running installation script for ${humanName}…"
cd $componentToInstall
indentOutput "./install" ' '
./install | indent ' '
cd ..
# 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