unicesi / amelia

:airplane: DSL for deploying distributed systems, with custom commands to compile and execute FraSCAti applications
GNU Lesser General Public License v3.0
2 stars 3 forks source link

Augment the generic command to recognise non-zero error codes #43

Closed jachinte closed 7 years ago

jachinte commented 7 years ago

Use the $? variable to check whether a command was successful or not. This can be introduced (for now) in the Commands.generic method.

More info here: https://askubuntu.com/questions/29370/how-to-check-if-a-command-succeeded

This should be ideally implemented for all commands.