1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-29 18:50:08 +03:00

B #5668: Fix regex in the fix_dir_slashes function (#2393)

This commit is contained in:
Michal Opala 2022-12-07 10:14:33 +01:00 committed by GitHub
parent a7fd43d9f5
commit 597ac2cf4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,7 +76,7 @@ SCRIPT_NAME=`basename -- $0`
# /some//path///somewhere/ -> /some/path/somewhere
function fix_dir_slashes
{
dirname "$1/file" | $SED 's/\/\+/\//g'
dirname "$1/file" | $SED 's:/+:/:g'
}
# ------------------------------------------------------------------------------