Skip to content
Snippets Groups Projects
Commit b1df8d7d authored by Nickolas Fotopoulos's avatar Nickolas Fotopoulos
Browse files

generate_user_env.awk: fixed sed command for removing old paths

parent af268ba7
Branches
Tags lvalert-1.0-1
No related merge requests found
......@@ -139,10 +139,10 @@ END {
for (i in pathvar) {
if (substr(pathvar[i], 1, 1) != "$") {
if (csh) {
printf " setenv %s `echo \":${%s}:\" | sed 's|:%s:||;s|^:||;s|:$||'`\n", name, name, pathvar[i] >>output
printf " setenv %s `echo \":${%s}:\" | sed 's|:%s:|:|;s|^:||;s|:$||'`\n", name, name, pathvar[i] >>output
}
else {
printf " %s=`echo \":${%s}:\" | sed 's|:%s:||;s|^:||;s|:$||'`\n", name, name, pathvar[i] >>output
printf " %s=`echo \":${%s}:\" | sed 's|:%s:|:|;s|^:||;s|:$||'`\n", name, name, pathvar[i] >>output
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment