mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-04-05 18:13:50 +00:00
fix(tududi): clear bash hash table after setup_nodejs in update
In some edge-case environments where Node.js was previously installed via a non-standard method, bash's command hash table can cache a stale npm location. Adding 'hash -r' after setup_nodejs clears the cache, forcing bash to re-resolve npm from the current PATH. Fixes #12920
This commit is contained in:
@@ -29,6 +29,7 @@ function update_script() {
|
||||
fi
|
||||
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
hash -r 2>/dev/null || true
|
||||
|
||||
if check_for_gh_release "tududi" "chrisvel/tududi"; then
|
||||
msg_info "Stopping Service"
|
||||
|
||||
Reference in New Issue
Block a user