Copilot
18b9f020bb
Fix shell script formatting and add PR workflow validation ( #3 )
...
* Initial plan
* fix: format shell scripts with shfmt (convert tabs to 2 spaces)
Co-authored-by: kuhyx <147418882+kuhyx@users.noreply.github.com>
* feat: enhance shell-check workflow for PR pre-merge validation
- Add pull_request_target trigger to check PRs from forks
- Add explicit failure message with instructions
- Create BRANCH_PROTECTION.md with setup guide
- Ensure workflow runs on all PRs targeting main/master
Co-authored-by: kuhyx <147418882+kuhyx@users.noreply.github.com>
* refactor: improve workflow security and remove redundant exit code
- Remove pull_request_target to avoid executing untrusted fork code
- Remove redundant exit 1 from failure step
- Update documentation to reflect changes
- Standard pull_request trigger handles forks securely
Co-authored-by: kuhyx <147418882+kuhyx@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: kuhyx <147418882+kuhyx@users.noreply.github.com>
2026-01-07 22:52:20 +01:00
5b032891c5
refactor: reduce code duplication from 1.97% to 0.76%
...
- Add common.sh library functions: require_imagemagick, install_missing_pacman_packages, handle_arg_help_or_unknown
- Create android.sh shared library for Android utilities
- Create hosts-guard-common.sh for pacman hooks shared functions
- Update multiple scripts to source common.sh and use shared helpers
- Add print_shutdown_schedule helper in setup_midnight_shutdown.sh
- Remove duplicate log(), usage(), install_packages patterns across scripts
- Format all shell scripts with shfmt (2-space indent)
2025-12-11 18:32:15 +01:00
03bd36e41d
fix: resolve all shellcheck errors
...
- Replace 'A && B || C' patterns with proper if-then-else statements (SC2015)
- Add check_for_virtualbox function to invoke prompt_for_virtualbox_challenge (SC2317)
- Fix install_launcher function to escape variable in heredoc (SC2119/SC2120)
- Apply shfmt formatting to ensure consistent style
Fixes 7 SC2015 violations, 1 SC2317 violation, and 1 SC2119/SC2120 pair.
All 79 shell files now pass shellcheck without errors.
2025-11-16 21:17:08 +01:00
795f56023e
fix: shellcheck issues
2025-11-01 15:36:22 +01:00
2b62e60ee1
chore: organize scripts folder
2025-10-31 17:31:16 +01:00
c12ca2f5d1
fix: nvidia detect not available
2025-08-18 08:59:26 +02:00
952ebb5ab9
feat: added scripts to install different graphics
2025-08-14 13:38:43 +02:00
4f654c3326
feat: added arch wiki local special script for nvidia drivers removed some packages
2025-08-14 12:46:26 +02:00
9c1685bc27
feat: added screengrab and gwe
2025-08-02 07:40:08 +02:00
e53501d217
feat: make main script more automatic
2025-08-01 13:14:34 +02:00
219c76d6bb
feat: added comments support
2025-08-01 12:59:08 +02:00
c3169aba9f
feat: removed some of the packages that did not work
2025-08-01 12:39:13 +02:00
47c94c8f5c
feat: move main sh packages list to separete file
2025-08-01 11:42:37 +02:00
2da5138ad9
feat: do not create mpv directoryy if it already exists
2025-02-01 21:29:12 +01:00
59ea3c8293
feat: add ignore packages block minecraft hosts and do not reinstall latex packages
2025-02-01 21:19:00 +01:00
6265b923b1
feat: add mpv configuration
2025-01-21 08:03:45 +01:00
92e9cee2d1
feat: switched from open to cloesd nvidia drivers
2025-01-13 18:01:57 +00:00
200bc2fb43
feat: added latex
2025-01-13 12:01:24 +00:00
6d8d4bed22
feat: ran it on fresh install
2025-01-12 13:01:21 +00:00
63aa95dc69
feat: added mkinicpio conf
2025-01-11 23:42:16 +00:00
71cd221785
feat: added pyenv
2025-01-11 19:40:21 +01:00
4dbe66a8eb
feat: add thumbnails for file maanger
2025-01-11 19:16:44 +01:00
9ffe8f0246
feat: added mangojud dependencies
2025-01-11 13:37:15 +01:00
5194a668a7
feat: added gamemode and mangohud
2025-01-11 13:35:06 +01:00
05ae7a01d5
feat: controller apps
2025-01-10 22:47:53 +01:00
5976b31bb1
feat: changed qdirstat to basic version
2025-01-10 21:52:41 +01:00
a3d9661187
feat: added qdirstat microsft fonts and unreal engine dependencies
2025-01-10 21:26:26 +01:00
3c7fee48aa
feat: added java unreal engine microsoft fonts and godot
2025-01-10 21:20:57 +01:00
deb1909128
feat: added blender dependencies
2025-01-10 20:52:55 +01:00
9d29efc1b6
feat: added blender git installation
2025-01-10 20:47:44 +01:00
ef56dcbf0d
feat: added virtualbox installation
2025-01-10 20:47:08 +01:00
b3fd18466c
chore: added spotube dependenceies
2025-01-10 19:37:39 +01:00
fae704dc07
chore: added spotube to list of installs
2025-01-10 19:32:01 +01:00
5f23b0c47f
feat: finished fresh install script
2025-01-10 14:50:18 +01:00
c082ad5678
feat: added pacman.conf
2025-01-10 14:35:39 +01:00
4d2270867f
feat: automatically copy pacman conf to etc pacman conf
2025-01-10 12:54:40 +01:00
1a4a5c0ad2
feat: add makepkg.conf configuration
2025-01-10 12:53:39 +01:00
afc8d97e16
chore: removed leechlock
2025-01-10 12:37:42 +01:00
0d677f7625
feat: added packages list
2025-01-10 11:43:46 +01:00
9b01cb7b7b
feat: smarter process package function
2025-01-10 00:02:27 +01:00
8a2c91aea6
feat: contemplating dependency hell
2025-01-09 23:12:25 +01:00
1418dedaf8
feat: added sound when the script fails
2025-01-09 21:46:38 +01:00
5684a2a06c
feat: updating packages installed in fresh install
2025-01-09 20:50:21 +01:00
ab1ea11ce6
feat: added fresh installation script
2025-01-09 20:10:45 +01:00