massive updates
This commit is contained in:
parent
a1d16f2903
commit
27a5f0ff1e
28 changed files with 3174 additions and 765 deletions
|
@ -50,8 +50,8 @@ update_path() {
|
|||
|
||||
# Check for duplicate PATH entries in the config file
|
||||
if [[ -f "$config_file" ]]; then
|
||||
# Remove any existing entries for INSTALL_DIR
|
||||
sed -i.bak "/export PATH=.*$INSTALL_DIR/d" "$config_file" && rm -f "$config_file.bak"
|
||||
# Remove any existing entries for INSTALL_DIR using a different delimiter
|
||||
sed -i.bak "\|export PATH=.*$INSTALL_DIR|d" "$config_file" && rm -f "$config_file.bak"
|
||||
info "Removed any existing $INSTALL_DIR entries from $config_file"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue