Révision 58dbb4d0
added the source for the catch function
| plugins/router/mikrotik_system | ||
|---|---|---|
| 47 | 47 |
|
| 48 | 48 |
# Function to get stderr from command |
| 49 | 49 |
# USAGE: catch STDOUT STDERR cmd args.. |
| 50 |
# Source: https://stackoverflow.com/a/41069638 |
|
| 50 | 51 |
catch() |
| 51 | 52 |
{
|
| 52 | 53 |
eval "$({
|
Formats disponibles : Unified diff