Translate '.' in filenames to '_' in bash variable names
This commit is contained in:
parent
f367b2e1aa
commit
5686153939
|
@ -52,7 +52,7 @@ fi
|
||||||
|
|
||||||
# function to rename a package to a bash/C identifier
|
# function to rename a package to a bash/C identifier
|
||||||
get_cname() {
|
get_cname() {
|
||||||
echo $1 | tr +- p_
|
echo $1 | tr +-. p__
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue