You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
log_error "Content verification failed for PATH profile: $PATH_PROFILE. The written content does not match the expected content."
295
-
return 1
296
-
fi
297
-
298
-
if! chmod 644 "$PATH_PROFILE";then
299
-
log_error "Failed to set permissions on PATH profile: $PATH_PROFILE"
300
-
return 1
301
-
fi
302
-
303
-
# Source only after verifying the profile so this session uses the same logic as future shells.
304
-
if!."$PATH_PROFILE";then
305
-
log_error "Failed to source PATH profile: $PATH_PROFILE. The profile may contain shell syntax errors."
306
-
return 1
307
-
fi
308
-
258
+
warn_install_dir_not_in_path() {
309
259
case":${PATH:-}:"in
310
-
*:"$install_dir":*)
311
-
if!$install_dir_was_in_path;then
312
-
log_info "Added $install_dir to PATH for this installer session"
313
-
fi
314
-
;;
315
-
*)
316
-
log_error "Failed to add $install_dir to PATH after sourcing $PATH_PROFILE. The profile may be incompatible with the current shell or PATH may be read-only."
317
-
return 1
318
-
;;
260
+
*:"$INSTALL_DIR":*) ;;
261
+
*) log_warning "$INSTALL_DIR is not in PATH; add it to PATH to run aks-flex-node without the full path." ;;
319
262
esac
320
-
321
-
log_success "Configured $INSTALL_DIR in PATH for future shell sessions"
0 commit comments