This commit is contained in:
jash
2018-11-04 18:41:20 +01:00
committed by kexkey
parent ee20c4dcfe
commit 8302b8ca82

22
dist/setup.sh vendored
View File

@@ -13,24 +13,6 @@
# docker-compose -f docker-compose.yaml up [-d]
## utils -----
trace()
{
if [ -n "${TRACING}" ]; then
echo -n "[$(date +%Y-%m-%dT%H:%M:%S%z)] ${1}"
fi
}
log()
{
echo -n "${1}"
}
logline()
{
echo "${1}"
}
# FROM: https://stackoverflow.com/questions/5195607/checking-bash-exit-status-of-several-commands-efficiently
# Use step(), try(), and next() to perform a series of commands and print
# [ OK ] or [FAILED] at the end. The step as a whole fails if any individual
@@ -42,7 +24,7 @@ logline()
# try mount -o remount,rw /boot
# next
step() {
log "$@"
echo -n "$@"
STEP_OK=0
[[ -w /tmp ]] && echo $STEP_OK > /tmp/step.$$
@@ -217,7 +199,7 @@ copy_file() {
fi
doCopy=1
else
logline "identical $sourceFile == $targetFile"
echo "identical $sourceFile == $targetFile"
fi
else
doCopy=1