Files
spark/tools/quiet_exec.sh
John Colvin f5c8c29f5a build: Migrate web build to net6.0
Clean up the web build process a bit while we're at it
* Add 'custom_commands' to run npm install in CMakeLists
* Generate tsconfig files for CMake preset configurations
* Rename local variables to _snake_case in CMakeLists
2022-09-21 00:14:38 -05:00

14 lines
178 B
Bash
Executable File

#!/bin/bash
tmpfile=$(mktemp /tmp/quiet_exec.XXXX)
BUILD_DIR=$1
eval "${@:2}" >$tmpfile 2>&1
if [ $? -eq 0 ]
then
rm $tmpfile
exit 0
else
cat $tmpfile
exit 1
fi