1
0
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:
Javi Fontan 2010-11-24 17:57:28 +01:00 committed by Jaime Melis
parent 5ef3bdc012
commit f3e90d7f1a

View File

@ -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