diff options
Diffstat (limited to 'admin/Interface/EjecutarScript')
-rwxr-xr-x | admin/Interface/EjecutarScript | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/admin/Interface/EjecutarScript b/admin/Interface/EjecutarScript index 101bd15f..3de64815 100755 --- a/admin/Interface/EjecutarScript +++ b/admin/Interface/EjecutarScript @@ -7,4 +7,15 @@ echo -e >> $OGLOGFILE echo -e >> $OGLOGFILE echo "Salida: *****************************" >> $OGLOGFILE chmod +x $1 -$1 &>> $OGLOGFILE || exit $? +$1 &>> $OGLOGFILE +RETVAL=$? +echo $RETVAL &>> $OGLOGFILE + +if [ $RETVAL == 0 ] +then + rm $OGLOGFILE + touch $OGLOGFILE +else + echo $RETVAL &>> $OGLOGFILE +fi +exit $RETVAL
\ No newline at end of file |