Skip to content
Snippets Groups Projects
Commit c907cb75 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

remove : and backslash for ms win safenames

parent ff22cf44
No related branches found
No related tags found
1 merge request!1277009 better safename for windows
......@@ -171,12 +171,11 @@ function j_getFullTarget(){
# ------------------------------------------------------------
# replace / to _ to get a save filename for a directory to
# backup
# backup or restore
# param string name of directory
# ------------------------------------------------------------
function j_getSafename(){
# echo $* | sed 's#/#_#g'
echo "${*//\//_}"
echo "${*//[\/\\:]/_}"
}
# ------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment