mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-16 09:43:18 +09:00
bug in tm sed expressions
This commit is contained in:
1 parent
4886751891
commit
94c436dbc5
1 file changed
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user