diff --git a/dotfiles/install/install-linux-global.sh b/dotfiles/install/install-linux-global.sh index 7819339..bc24627 100644 --- a/dotfiles/install/install-linux-global.sh +++ b/dotfiles/install/install-linux-global.sh @@ -88,13 +88,8 @@ awk -v s="$MARKER_START" -v e="$MARKER_END" ' $0==e {inside=0; next} !inside {print} ' "$BASH_BASHRC" > "$tmp" -install -m "$orig_mode" -o "$orig_owner" -g "$orig_group" "$tmp" "$BASH_BASHRC" -if command -v restorecon >/dev/null 2>&1; then - restorecon "$BASH_BASHRC" >/dev/null 2>&1 || true -fi -rm -f "$tmp" -cat >> "$BASH_BASHRC" <> "$tmp" </dev/null 2>&1; then + restorecon "$BASH_BASHRC" >/dev/null 2>&1 || true +fi +rm -f "$tmp" + echo "✅ Installert globalt (Linux/WSL):" echo " - $DST_PS1" echo " - $DST_BANNER"