Commit Graph

298 Commits

Author SHA1 Message Date
Santiago Lo Coco bf729ef212 Add clear 2022-01-09 20:17:50 -03:00
Santiago Lo Coco 43fcb210ca Refactor 2022-01-06 22:57:37 -03:00
Santiago Lo Coco f594db2601 Add checkSudoers() 2022-01-06 14:21:24 -03:00
Santiago Lo Coco 5ad658f3f3 Delete trailing whitespaces 2022-01-06 13:36:35 -03:00
Santiago Lo Coco 00768e0e4a Fix bug 2022-01-06 13:25:01 -03:00
Santiago Lo Coco 4989bfbab3 Update checkForSystemdUnit() 2022-01-06 11:39:37 -03:00
Santiago Lo Coco 3fab8bfeff Add printStepIfDebug() 2022-01-06 11:09:25 -03:00
Santiago Lo Coco af1069d83d Add printf 2022-01-06 00:44:50 -03:00
Santiago Lo Coco b8658f204c Update while condition 2022-01-06 00:35:23 -03:00
Santiago Lo Coco b9c91de208 Update runScript() 2022-01-05 23:41:04 -03:00
Santiago Lo Coco 6244f2e35d Replace CocoASAIS.debug with CocoASAIS.log 2022-01-05 23:38:27 -03:00
Santiago Lo Coco 38bdcb1863 Refactor 2022-01-05 23:36:00 -03:00
Santiago Lo Coco ecfca86f0e Automate log 2022-01-05 23:31:22 -03:00
Santiago Lo Coco dfcfa7ef3a Add tryLoadVar() and leave CocoASAIS.log strictly for logging purposes 2022-01-05 23:26:52 -03:00
Santiago Lo Coco 4345501999 Remove unused code 2022-01-05 19:33:32 -03:00
Santiago Lo Coco f562bae1ba Add generic loadVar() and saveVar() 2022-01-05 16:45:14 -03:00
Santiago Lo Coco 63a3a5eb63 Fix typo and add debug 2022-01-05 15:22:21 -03:00
Santiago Lo Coco d2d9247d65 Add printWaitBox() 2022-01-05 15:10:10 -03:00
Santiago Lo Coco 57b71c83c6 Fix bug 2022-01-05 14:43:29 -03:00
Santiago Lo Coco 5db88c59aa Swap condition blocks 2022-01-05 14:35:15 -03:00
Santiago Lo Coco 489adc762e Distinguish between oneshot and simple services 2022-01-05 14:25:32 -03:00
Santiago Lo Coco 1716c73a53 Update dialog box 2022-01-05 13:18:34 -03:00
Santiago Lo Coco 0635b2ae5e Add flag in checkForSystemdUnit() 2022-01-05 12:52:45 -03:00
Santiago Lo Coco 6752b96098 Fix bug 2022-01-05 12:17:43 -03:00
Santiago Lo Coco f5fb0726f1 Update install.sh 2022-01-05 11:46:12 -03:00
Santiago Lo Coco 7835bc4748 Run reflector.service in the background 2022-01-04 20:40:20 -03:00
Santiago Lo Coco 45a6b5b1f8 Update msgbox of updateMirrors() 2022-01-04 20:39:44 -03:00
Santiago Lo Coco 1c5ec56e12 Stop reflector.service 2022-01-04 20:31:03 -03:00
Santiago Lo Coco 173e0c47d9 Fix typo 2022-01-04 19:10:32 -03:00
Santiago Lo Coco 2ed7bcf95a Replace journalctl with systemctl 2022-01-04 19:05:15 -03:00
Santiago Lo Coco f3329f3fa7 Refactor 2022-01-04 18:40:06 -03:00
Santiago Lo Coco ca0b87ea78 Use SIGINT to stop loop in chekForGraph...() 2022-01-04 18:39:25 -03:00
Santiago Lo Coco 5b0059ddf8 Update infobox text 2022-01-04 17:47:06 -03:00
Santiago Lo Coco 4e93ca3198 Add infobox in chekForGraph...() 2022-01-04 14:32:40 -03:00
Santiago Lo Coco 4d3a064243 Uncomment runScript 2022-01-04 13:13:27 -03:00
Santiago Lo Coco 48b265cf16 Fix bug in updateMirrors() 2022-01-04 13:08:00 -03:00
Santiago Lo Coco 79b5565c7f Update updateMirrors() and change steps order 2022-01-04 13:06:17 -03:00
Santiago Lo Coco 2913c24307 Fix bug in checkForGraph...() 2022-01-04 12:39:57 -03:00
Santiago Lo Coco 86f704a633 Wait for archiso to finish its tasks 2022-01-04 12:30:20 -03:00
Santiago Lo Coco c7f3f6f4ea Use reset to completely clear terminal 2022-01-04 12:08:46 -03:00
Santiago Lo Coco fd2e239c1c Use MB in autoPart() 2022-01-04 12:01:47 -03:00
Santiago Lo Coco feb8a5e712 Fix bug in logAndExit() 2022-01-04 12:00:15 -03:00
Santiago Lo Coco 83f908b9da Do not reinstall group packages 2022-01-04 01:59:14 -03:00
Santiago Lo Coco 70da042b77
Merge pull request #2 from santilococo/testNeededFlag
Test needed flag
2022-01-04 01:53:13 -03:00
Santiago Lo Coco 62a58ef0b9 Refactor 2022-01-04 01:47:30 -03:00
Santiago Lo Coco 4b8cf28561 Add TODO 2022-01-04 01:16:27 -03:00
Santiago Lo Coco d01c6c2d53 Update installPackage() 2022-01-04 01:09:59 -03:00
Santiago Lo Coco 391d095245 Fix typo 2022-01-04 00:25:06 -03:00
Santiago Lo Coco d254074e7a Remove --needed flag due to R tag in INSTALLER (reinstall) 2022-01-04 00:20:39 -03:00
Santiago Lo Coco 85dab874b9 Fix bug in logAndExit() 2022-01-03 23:32:01 -03:00
Santiago Lo Coco db8b06cc57 Remove checkForExpect() call 2022-01-03 23:21:24 -03:00
Santiago Lo Coco 53e1e78679 Fix the last (at least for now) bug in mountPart() 2022-01-03 21:48:59 -03:00
Santiago Lo Coco a0cd676c32 Fix another bug in mountPart() 2022-01-03 21:35:55 -03:00
Santiago Lo Coco a6cb5b36aa Update mountPart() 2022-01-03 21:12:12 -03:00
Santiago Lo Coco 4d8107040c Fix another bug 2022-01-03 21:10:23 -03:00
Santiago Lo Coco 710de9a142 Fix typo 2022-01-03 20:45:17 -03:00
Santiago Lo Coco 5dc6f7667d Fix more bugs in mountPart() 2022-01-03 20:44:30 -03:00
Santiago Lo Coco a2baeb7b46 Fix more bugs 2022-01-03 20:35:34 -03:00
Santiago Lo Coco 0a55f8f93c Fix bug in mountPart() 2022-01-03 20:34:03 -03:00
Santiago Lo Coco 25415b6308 Add debug 2022-01-03 20:29:31 -03:00
Santiago Lo Coco e9aba4cc6d Postpone (more) the swapfile creation 2022-01-03 19:49:21 -03:00
Santiago Lo Coco 12479b4b33 Postpone swapfile creation 2022-01-03 19:42:47 -03:00
Santiago Lo Coco 8477e48cde Uncomment runScript 2022-01-03 19:01:16 -03:00
Santiago Lo Coco dbf735f50b Add more validations in getSize() (with a much better regex) 2022-01-03 19:00:44 -03:00
Santiago Lo Coco 44947d7bf8 Update getSize() regex 2022-01-03 18:08:02 -03:00
Santiago Lo Coco 554d973945 Refactor 2022-01-03 16:18:05 -03:00
Santiago Lo Coco 008d364575 Ask for swap size 2022-01-03 16:08:31 -03:00
Santiago Lo Coco 66cd1b9226 Fix typo 2022-01-03 14:53:36 -03:00
Santiago Lo Coco ccd7c23b30 Ask where to mount bootPart 2022-01-03 14:53:15 -03:00
Santiago Lo Coco 9f2cb240bb Fix bug in partDisks() and add TODOs 2022-01-03 14:37:21 -03:00
Santiago Lo Coco 974a0aa799 Change default shell 2022-01-03 14:05:20 -03:00
Santiago Lo Coco 406e0690bd Fix typo 2022-01-03 12:03:08 -03:00
Santiago Lo Coco 54990f3829 Add D packages (git) 2022-01-03 12:00:16 -03:00
Santiago Lo Coco 48219a97c0 Move loadUsername() call 2022-01-03 00:17:11 -03:00
Santiago Lo Coco e1b8edc609 Fix more bugs 2022-01-03 00:13:54 -03:00
Santiago Lo Coco 8d4f61a91a Fix bug of installPackage() 2022-01-03 00:04:16 -03:00
Santiago Lo Coco 65315340ea Update checkForExpect() 2022-01-02 23:50:56 -03:00
Santiago Lo Coco 911fa2aa0b Use unbuffer 2022-01-02 23:46:57 -03:00
Santiago Lo Coco 7195c7eba7 Update generateFstab() 2022-01-02 23:19:58 -03:00
Santiago Lo Coco 73f086fb8a Remove unnecesary echo 2022-01-02 23:00:07 -03:00
Santiago Lo Coco 240a2abe52 Update installPackage() 2022-01-02 22:57:16 -03:00
Santiago Lo Coco e3f21ae705 Use tee in debug() and add flag '-s' 2022-01-02 22:52:30 -03:00
Santiago Lo Coco bcbbc25636 Set buffering type to unbuffered for pacman pipes 2022-01-02 21:58:06 -03:00
Santiago Lo Coco 6eae17537e Add swapfile as an alternative to swap partition 2022-01-02 17:47:07 -03:00
Santiago Lo Coco f4335e27c4 Update partDisks() (and add more validations) 2022-01-02 16:45:27 -03:00
Santiago Lo Coco a2450b409c Refactor 2022-01-02 16:11:16 -03:00
Santiago Lo Coco 3eb42130c9 Add logAndExit() (refactor) 2022-01-02 16:09:10 -03:00
Santiago Lo Coco 82014eadff Fix typo 2022-01-02 16:00:21 -03:00
Santiago Lo Coco 888d87157c Add more validations 2022-01-02 15:52:39 -03:00
Santiago Lo Coco 2893f66655 Add semi-important packages and update packages.csv 2022-01-02 12:42:55 -03:00
Santiago Lo Coco c4272301fa Run shellcheck and update install.sh 2022-01-02 12:26:22 -03:00
Santiago Lo Coco b40758653d Use bash shebang 2022-01-02 01:22:05 -03:00
Santiago Lo Coco 28b121a81d Add more packages 2022-01-02 01:03:12 -03:00
Santiago Lo Coco eb251697d4 Update dialog boxes 2022-01-02 00:51:54 -03:00
Santiago Lo Coco 6242660180 Add and change dialog boxes in partDisks() 2022-01-02 00:45:56 -03:00
Santiago Lo Coco e1e56bd966 Change welcome msg if steps > 0 2022-01-01 23:21:51 -03:00
Santiago Lo Coco 20f10577c2 Update install.sh 2022-01-01 22:25:53 -03:00
Santiago Lo Coco 3f90fe973a Add debug to file 2022-01-01 22:16:24 -03:00
Santiago Lo Coco 952e2fdb63 Add debug option to all commands 2022-01-01 21:34:42 -03:00
Santiago Lo Coco e8795534a3 Logout after getDotfiles() 2021-12-31 17:31:42 -03:00
Santiago Lo Coco 4d55171142 Fix more bugs 2021-12-31 17:30:16 -03:00
Santiago Lo Coco 4636de2412 Update getDotfiles() 2021-12-31 17:24:54 -03:00
Santiago Lo Coco 544c9b42fa Add dialogBox and remove unnecessary sudo 2021-12-31 17:18:37 -03:00
Santiago Lo Coco a7466f526f Fix bugs 2021-12-31 17:07:25 -03:00
Santiago Lo Coco 1129ef7974 Create zsh cache folder 2021-12-31 15:26:35 -03:00
Santiago Lo Coco e8e57458a8 Add zshConfig() call and add debug 2021-12-31 14:59:43 -03:00
Santiago Lo Coco 227bd97b41 Create histfile and refactor 2021-12-31 14:58:29 -03:00
Santiago Lo Coco a9faaa0f6d Use --unattended in oh-my-zsh install 2021-12-31 14:57:08 -03:00
Santiago Lo Coco 5139589de9 Auto run script after reboot 2021-12-31 12:25:48 -03:00
Santiago Lo Coco 3ef43fcada Add more debug()s 2021-12-30 21:21:49 -03:00
Santiago Lo Coco f477c0d874 Redo change of getDotfiles() 2021-12-30 21:01:04 -03:00
Santiago Lo Coco a7c5c75ff6 Replace /home/slococo/.oh-my-zsh/custom 2021-12-30 18:55:11 -03:00
Santiago Lo Coco 82db4b78b8 Update getDotfiles() 2021-12-30 18:21:29 -03:00
Santiago Lo Coco 190b3c01e0 Postpone zaread-git installation 2021-12-30 17:58:42 -03:00
Santiago Lo Coco 266ce94e50 Load username only if not set 2021-12-30 17:00:29 -03:00
Santiago Lo Coco ab514210d2 Fix bugs 2021-12-30 14:58:11 -03:00
Santiago Lo Coco 40137ed07c Return exit status in calcWidthAndRun() and calcHeightAndRun() 2021-12-30 14:45:13 -03:00
Santiago Lo Coco 962b795308 Save and load username (w/o export) 2021-12-30 13:58:45 -03:00
Santiago Lo Coco dd74a98a35 Add debug option to more commands 2021-12-29 00:03:38 -03:00
Santiago Lo Coco c1ddae42d8 Return 0 in runInChroot() 2021-12-28 23:58:28 -03:00
Santiago Lo Coco 466b9d5d1f Use new tag in installPackage() 2021-12-28 22:14:23 -03:00
Santiago Lo Coco 7796e70ad5 Exact match in sed 2021-12-28 20:23:37 -03:00
Santiago Lo Coco 74f1ff68ce Fix more bugs 2021-12-27 23:53:09 -03:00
Santiago Lo Coco 90a8e72e58 Fix bug 2021-12-27 23:12:53 -03:00
Santiago Lo Coco daf888829f Follow styleguide 2021-12-27 23:07:14 -03:00
Santiago Lo Coco dfa108fe19 Add calcHeightAndRun() 2021-12-27 22:51:52 -03:00
Santiago Lo Coco ac6d07679a Set pipefail (to get the exit code of the last program that returned nonzero (in a pipe)) 2021-12-27 22:36:00 -03:00
Santiago Lo Coco 9faa2908e8 Refactor 2021-12-27 21:49:17 -03:00
Santiago Lo Coco 0e96306209 Update height calculation and refactor 2021-12-27 21:46:11 -03:00
Santiago Lo Coco b5309ec759 Add debugFlag (only for pacman for now) 2021-12-27 20:31:08 -03:00
Santiago Lo Coco ba36595f4f Add dynamic height calculation for dialog boxes with long text 2021-12-27 20:00:52 -03:00
Santiago Lo Coco 89930c09a3 Add dynamic width calculation 2021-12-27 19:46:22 -03:00
Santiago Lo Coco 00540a534d Update install.sh 2021-12-27 16:06:35 -03:00
Santiago Lo Coco 7c195eefb9 Add more redirects and update packages.csv 2021-12-27 15:30:41 -03:00
Santiago Lo Coco 2bbddffda9 Update installPackage() 2021-12-27 13:59:35 -03:00
Santiago Lo Coco 33b23e2fd4 Update packages.csv 2021-12-27 13:45:28 -03:00
Santiago Lo Coco 3854bf9309 Refactor 2021-12-27 13:20:37 -03:00
Santiago Lo Coco 80b87931cd Remove unnecesary validation 2021-12-27 13:16:16 -03:00
Santiago Lo Coco 56bf94731a Fix bugs 2021-12-27 12:53:47 -03:00
Santiago Lo Coco ad12222ed1 Add validations 2021-12-27 12:05:37 -03:00
Santiago Lo Coco 6205cb2815 Ask for username if not set 2021-12-27 11:45:05 -03:00
Santiago Lo Coco 6d170965d3 Remove sudo password prompt 2021-12-27 02:00:43 -03:00
Santiago Lo Coco de0add2300 Run makepkg with non-root user 2021-12-27 01:25:30 -03:00
Santiago Lo Coco b499f17619 Fix bug in installPackage() 2021-12-27 00:58:45 -03:00
Santiago Lo Coco 491569c988 Add paru in getThePackages() and add validation/redirection 2021-12-27 00:57:59 -03:00
Santiago Lo Coco eaadf43327 Change mirrorlist path 2021-12-27 00:18:44 -03:00
Santiago Lo Coco 5241802fd2 Change width and height of passwordbox 2021-12-26 23:58:18 -03:00
Santiago Lo Coco f660a38f4b Use passwordbox 2021-12-26 23:38:42 -03:00
Santiago Lo Coco 6c8b237a84 Remove installPackage dialog 2021-12-26 23:21:41 -03:00
Santiago Lo Coco e17faad0c0 Add more dialog boxes 2021-12-26 23:01:28 -03:00