Commit graph

4 commits

Author SHA1 Message Date
Claude
987db8f7e8
Fix pipefail, privilege check, and glob safety bugs in installer
- Replace `find | head -n 1` with `find -print -quit` to avoid SIGPIPE
  failures under `set -eo pipefail`
- Add root privilege check at script start with clear error message
- Add logname fallback to SUDO_USER/USER for non-login shell environments
- Use absolute path for cd into DaVinci_Resolve directory
- Replace unquoted glob mv commands with a for loop that checks file
  existence before moving, avoiding false errors and masking real ones

https://claude.ai/code/session_01LLCGJrKAHAS1HA26Coq1VM
2026-04-01 07:26:30 +00:00
28allday
024cb07a25 Fix security and robustness issues found by shellcheck review
- Replace eval with getent passwd to prevent command injection
- Use dpkg -s for precise FUSE package detection (not grep)
- Add set -o pipefail to catch pipe failures
- Fix LD_LIBRARY_PATH trailing colon (security: implicit cwd in search path)
- Use cp -a instead of mv glob (catches hidden files, better error handling)
- Add explicit error checks in AppImage extraction fallback
- Use chmod u+rwX,go+rX instead of overly permissive 774

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-28 12:07:53 +00:00
28allday
a6b1472088 Add detailed comments to script and comprehensive README
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-28 12:05:17 +00:00
28allday
ca4438df34 Initial commit: DaVinci Resolve installer for Linux Mint
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-28 12:03:35 +00:00