- Fix CRLF line endings (SC1017) in 10 shell scripts - Add shebangs (SC2148) to 5 scripts missing them - Fix unquoted variables (SC2086) in kali-updates.sh - Add shellcheck disable directive for intentional eval usage - Fix missing space after ! in observium/custom_install.sh - Add security scan reports to .gitignore-safe location
redirecting-desktop_and_documents
Overview
Script to redirect Windows Desktop and Documents folders to OneDrive.
Files
| File | Description |
|---|---|
redirectfiles.sh |
Redirect Desktop/Documents to OneDrive |
Usage
Run as Administrator on Windows:
# Double-click or run from Command Prompt
redirectfiles.sh
What It Does
- Creates backup of existing folders
- Creates symbolic links to OneDrive equivalents
- Moves existing content to OneDrive
Prerequisites
- OneDrive must be installed and configured
- Desktop/Documents must not be in cloud sync yet
- Run as Administrator
Safety
- Creates backups:
~/Desktop.backup,~/Documents.backup - If symlinks already exist, skips the operation
- Test on a non-critical folder first