mirror of
https://github.com/OpenNebula/one.git
synced 2025-02-22 17:57:46 +03:00
bug in tm sed expressions
(cherry picked from commit 94c436dbc5d24148eb4caf53d2d676dea20de92e)
This commit is contained in:
parent
5ef3bdc012
commit
f3e90d7f1a
@ -124,13 +124,13 @@ function error_message
|
||||
# Gets the host from an argument
|
||||
function arg_host
|
||||
{
|
||||
echo $1 | $SED 's/^\([^:]*\):.*$/\1/'
|
||||
echo $1 | $SED 's/^([^:]*):.*$/\1/'
|
||||
}
|
||||
|
||||
# Gets the path from an argument
|
||||
function arg_path
|
||||
{
|
||||
echo $1 | $SED 's/^[^:]*:\(.*\)$/\1/'
|
||||
echo $1 | $SED 's/^[^:]*:(.*)$/\1/'
|
||||
}
|
||||
|
||||
# Executes a command, if it fails return error message and exits
|
||||
|
Loading…
x
Reference in New Issue
Block a user