|
@@ -60,10 +60,11 @@ line=${line//\$+/$@} |
|
|
|
|
|
|
|
|
if [[ -n $line ]]; then |
|
|
if [[ -n $line ]]; then |
|
|
command="${line#*${MARK}}" |
|
|
command="${line#*${MARK}}" |
|
|
|
|
|
command=$(echo $command | sed 's/[^\\]\?#.*//') |
|
|
echo "Exec: $command" |
|
|
echo "Exec: $command" |
|
|
if [[ $run -eq 1 ]]; then |
|
|
if [[ $run -eq 1 ]]; then |
|
|
echo "Output:" |
|
|
echo "Output:" |
|
|
$command |
|
|
|
|
|
|
|
|
sh -c "$command" |
|
|
fi |
|
|
fi |
|
|
else |
|
|
else |
|
|
echo -e "${MARKSTR} is not defined." >&2 |
|
|
echo -e "${MARKSTR} is not defined." >&2 |
|
|