bug in tm sed expressions

This commit is contained in:
Javi Fontan committed 2010-11-24 18:03:32 +01:00
1 parent 4886751891
commit 94c436dbc5
1 file changed
+2 -2
+2 -2
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