1
ewconfig/scripts/ewconfig-run

14 lines
206 B
Bash
Executable File

#! /usr/bin/env bash
set -e
# If $EWCONFIG_ROOT is not set, error
if [ -z "$EWCONFIG_ROOT" ]; then
echo "Error: \$EWCONFIG_ROOT is not set"
exit 1
fi
cwd="$(pwd)"
cd "$EWCONFIG_ROOT"
$@
cd "$cwd"