Add script log for elevation scripts.

This commit is contained in:
js0ny 2025-11-08 08:13:06 +00:00
parent 2a1127bf10
commit 6ee67769a6
25 changed files with 102 additions and 99 deletions

View file

@ -11,10 +11,6 @@ if [ -n "$BASH_VERSION" ] && [ -f "$HOME/.bash_profile" ]; then
. "$HOME/.bash_profile"
fi
if [ -n "$BASH_VERSION" ] && [ -f "$XDG_CONFIG_HOME/bash/bashrc" ]; then
. "$XDG_CONFIG_HOME/bash/bashrc"
fi
pathadd() {
# 检查是否存在且不在 PATH 中
if [[ -d "$1" && ":$PATH:" != *":$1:"* ]]; then