dev/provisioning/modules/puppi/files/scripts/execute.sh
author nowmad@nowmads-macbook-pro.local
Thu, 21 Jan 2016 00:11:10 +0100
changeset 93 f7223e2f3023
parent 28 b0b56e0f8c7f
permissions -rwxr-xr-x
fix removed var

#!/bin/bash
# execute.sh - Made for Puppi
# This script just executes what is passed as argument

# Sources common header for Puppi scripts
. $(dirname $0)/header || exit 10

#parse variables
command=$(eval "echo "$*"")

#execute command
eval "${command}"