From 3f04511793bc4296a78b864b9974e52c2684a4e6 Mon Sep 17 00:00:00 2001 From: Robin Candau Date: Fri, 9 Feb 2024 19:35:27 +0100 Subject: [PATCH] Exclude shellcheck SC1091 in the main script --- po/arch-update.pot | 150 +++++++++++++++++++------------------- src/script/arch-update.sh | 3 +- 2 files changed, 77 insertions(+), 76 deletions(-) diff --git a/po/arch-update.pot b/po/arch-update.pot index 3970796..b7b74f5 100644 --- a/po/arch-update.pot +++ b/po/arch-update.pot @@ -16,48 +16,48 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: src/script/arch-update.sh:87 +#: src/script/arch-update.sh:88 #, sh-format msgid "Press \"enter\" to continue " msgstr "" -#: src/script/arch-update.sh:93 +#: src/script/arch-update.sh:94 #, sh-format msgid "Press \"enter\" to quit " msgstr "" -#: src/script/arch-update.sh:103 +#: src/script/arch-update.sh:104 #, sh-format msgid "" "A privilege elevation method is required\\nPlease, install sudo or doas\\n" msgstr "" -#: src/script/arch-update.sh:125 +#: src/script/arch-update.sh:126 #, sh-format msgid "" "An update notifier/applier for Arch Linux that assists you with important " "pre/post update tasks." msgstr "" -#: src/script/arch-update.sh:127 +#: src/script/arch-update.sh:128 #, sh-format msgid "Run ${name} to perform the main 'update' function:" msgstr "" -#: src/script/arch-update.sh:128 +#: src/script/arch-update.sh:129 #, sh-format msgid "" "Print the list of packages available for update, then ask for the user's " "confirmation to proceed with the installation." msgstr "" -#: src/script/arch-update.sh:129 +#: src/script/arch-update.sh:130 #, sh-format msgid "" "Before performing the update, offer to print the latest Arch Linux news." msgstr "" -#: src/script/arch-update.sh:130 +#: src/script/arch-update.sh:131 #, sh-format msgid "" "Post update, check for orphan/unused packages, old cached packages, pacnew/" @@ -65,334 +65,334 @@ msgid "" "them." msgstr "" -#: src/script/arch-update.sh:132 +#: src/script/arch-update.sh:133 #, sh-format msgid "Options:" msgstr "" -#: src/script/arch-update.sh:133 +#: src/script/arch-update.sh:134 #, sh-format msgid "" " -c, --check Check for available updates, send a desktop notification " "containing the number of available updates (if libnotify is installed)" msgstr "" -#: src/script/arch-update.sh:134 +#: src/script/arch-update.sh:135 #, sh-format msgid " -h, --help Display this message and exit" msgstr "" -#: src/script/arch-update.sh:135 +#: src/script/arch-update.sh:136 #, sh-format msgid " -V, --version Display version information and exit" msgstr "" -#: src/script/arch-update.sh:137 +#: src/script/arch-update.sh:138 #, sh-format msgid "For more information, see the ${name}(1) man page." msgstr "" -#: src/script/arch-update.sh:138 +#: src/script/arch-update.sh:139 #, sh-format msgid "" "Certain options can be enabled/disabled or modified via the ${name}.conf " "configuration file, see the ${name}.conf(5) man page." msgstr "" -#: src/script/arch-update.sh:149 +#: src/script/arch-update.sh:150 #, sh-format msgid "" "${name}: invalid option -- '${option}'\\nTry '${name} --help' for more " "information." msgstr "" -#: src/script/arch-update.sh:205 +#: src/script/arch-update.sh:206 #, sh-format msgid "${update_number} update available" msgstr "" -#: src/script/arch-update.sh:207 +#: src/script/arch-update.sh:208 #, sh-format msgid "${update_number} updates available" msgstr "" -#: src/script/arch-update.sh:243 +#: src/script/arch-update.sh:244 #, sh-format msgid "Packages:" msgstr "" -#: src/script/arch-update.sh:248 +#: src/script/arch-update.sh:249 #, sh-format msgid "AUR Packages:" msgstr "" -#: src/script/arch-update.sh:253 +#: src/script/arch-update.sh:254 #, sh-format msgid "Flatpak Packages:" msgstr "" -#: src/script/arch-update.sh:259 +#: src/script/arch-update.sh:260 #, sh-format msgid "No update available\\n" msgstr "" -#: src/script/arch-update.sh:262 +#: src/script/arch-update.sh:263 #, sh-format msgid "Proceed with update? [Y/n]" msgstr "" -#: src/script/arch-update.sh:265 src/script/arch-update.sh:386 -#: src/script/arch-update.sh:419 src/script/arch-update.sh:461 -#: src/script/arch-update.sh:528 src/script/arch-update.sh:558 +#: src/script/arch-update.sh:266 src/script/arch-update.sh:387 +#: src/script/arch-update.sh:420 src/script/arch-update.sh:462 +#: src/script/arch-update.sh:529 src/script/arch-update.sh:559 #, sh-format msgid "[Yy]" msgstr "" -#: src/script/arch-update.sh:269 +#: src/script/arch-update.sh:270 #, sh-format msgid "The update has been aborted\\n" msgstr "" -#: src/script/arch-update.sh:286 +#: src/script/arch-update.sh:287 #, sh-format msgid "Arch News:" msgstr "" -#: src/script/arch-update.sh:291 +#: src/script/arch-update.sh:292 #, sh-format msgid "[NEW]" msgstr "" -#: src/script/arch-update.sh:300 +#: src/script/arch-update.sh:301 #, sh-format msgid "" "Select the news to read (or just press \"enter\" to proceed with update):" msgstr "" -#: src/script/arch-update.sh:311 +#: src/script/arch-update.sh:312 #, sh-format msgid "Title:" msgstr "" -#: src/script/arch-update.sh:312 +#: src/script/arch-update.sh:313 #, sh-format msgid "Author:" msgstr "" -#: src/script/arch-update.sh:313 +#: src/script/arch-update.sh:314 #, sh-format msgid "Publication date:" msgstr "" -#: src/script/arch-update.sh:329 +#: src/script/arch-update.sh:330 #, sh-format msgid "Updating Packages...\\n" msgstr "" -#: src/script/arch-update.sh:334 src/script/arch-update.sh:346 -#: src/script/arch-update.sh:357 +#: src/script/arch-update.sh:335 src/script/arch-update.sh:347 +#: src/script/arch-update.sh:358 #, sh-format msgid "" "An error has occurred during the update process\\nThe update has been " "aborted\\n" msgstr "" -#: src/script/arch-update.sh:341 +#: src/script/arch-update.sh:342 #, sh-format msgid "Updating AUR Packages...\\n" msgstr "" -#: src/script/arch-update.sh:353 +#: src/script/arch-update.sh:354 #, sh-format msgid "Updating Flatpak Packages...\\n" msgstr "" -#: src/script/arch-update.sh:364 +#: src/script/arch-update.sh:365 #, sh-format msgid "The update has been applied\\n" msgstr "" -#: src/script/arch-update.sh:376 +#: src/script/arch-update.sh:377 #, sh-format msgid "Orphan Packages:" msgstr "" -#: src/script/arch-update.sh:380 +#: src/script/arch-update.sh:381 #, sh-format msgid "" "Would you like to remove this orphan package (and its potential " "dependencies) now? [y/N]" msgstr "" -#: src/script/arch-update.sh:382 +#: src/script/arch-update.sh:383 #, sh-format msgid "" "Would you like to remove these orphan packages (and their potential " "dependencies) now? [y/N]" msgstr "" -#: src/script/arch-update.sh:388 +#: src/script/arch-update.sh:389 #, sh-format msgid "Removing Orphan Packages...\\n" msgstr "" -#: src/script/arch-update.sh:392 src/script/arch-update.sh:425 -#: src/script/arch-update.sh:468 src/script/arch-update.sh:478 -#: src/script/arch-update.sh:488 src/script/arch-update.sh:497 +#: src/script/arch-update.sh:393 src/script/arch-update.sh:426 +#: src/script/arch-update.sh:469 src/script/arch-update.sh:479 +#: src/script/arch-update.sh:489 src/script/arch-update.sh:498 #, sh-format msgid "" "An error has occurred during the removal process\\nThe removal has been " "aborted\\n" msgstr "" -#: src/script/arch-update.sh:395 src/script/arch-update.sh:428 +#: src/script/arch-update.sh:396 src/script/arch-update.sh:429 #, sh-format msgid "The removal has been applied\\n" msgstr "" -#: src/script/arch-update.sh:400 src/script/arch-update.sh:432 -#: src/script/arch-update.sh:505 +#: src/script/arch-update.sh:401 src/script/arch-update.sh:433 +#: src/script/arch-update.sh:506 #, sh-format msgid "The removal hasn't been applied\\n" msgstr "" -#: src/script/arch-update.sh:404 +#: src/script/arch-update.sh:405 #, sh-format msgid "No orphan package found\\n" msgstr "" -#: src/script/arch-update.sh:409 +#: src/script/arch-update.sh:410 #, sh-format msgid "Flatpak Unused Packages:" msgstr "" -#: src/script/arch-update.sh:413 +#: src/script/arch-update.sh:414 #, sh-format msgid "Would you like to remove this Flatpak unused package now? [y/N]" msgstr "" -#: src/script/arch-update.sh:415 +#: src/script/arch-update.sh:416 #, sh-format msgid "Would you like to remove these Flatpak unused packages now? [y/N]" msgstr "" -#: src/script/arch-update.sh:421 +#: src/script/arch-update.sh:422 #, sh-format msgid "Removing Flatpak Unused Packages..." msgstr "" -#: src/script/arch-update.sh:436 +#: src/script/arch-update.sh:437 #, sh-format msgid "No Flatpak unused package found\\n" msgstr "" -#: src/script/arch-update.sh:453 +#: src/script/arch-update.sh:454 #, sh-format msgid "Cached Packages:\\nThere's an old or uninstalled cached package\\n" msgstr "" -#: src/script/arch-update.sh:454 +#: src/script/arch-update.sh:455 #, sh-format msgid "Would you like to remove it from the cache now? [Y/n]" msgstr "" -#: src/script/arch-update.sh:456 +#: src/script/arch-update.sh:457 #, sh-format msgid "Cached Packages:\\nThere are old and/or uninstalled cached packages\\n" msgstr "" -#: src/script/arch-update.sh:457 +#: src/script/arch-update.sh:458 #, sh-format msgid "Would you like to remove them from the cache now? [Y/n]" msgstr "" -#: src/script/arch-update.sh:464 src/script/arch-update.sh:484 +#: src/script/arch-update.sh:465 src/script/arch-update.sh:485 #, sh-format msgid "Removing old cached packages..." msgstr "" -#: src/script/arch-update.sh:474 src/script/arch-update.sh:493 +#: src/script/arch-update.sh:475 src/script/arch-update.sh:494 #, sh-format msgid "Removing uninstalled cached packages..." msgstr "" -#: src/script/arch-update.sh:509 +#: src/script/arch-update.sh:510 #, sh-format msgid "No old or uninstalled cached package found\\n" msgstr "" -#: src/script/arch-update.sh:518 +#: src/script/arch-update.sh:519 #, sh-format msgid "Pacnew Files:" msgstr "" -#: src/script/arch-update.sh:522 +#: src/script/arch-update.sh:523 #, sh-format msgid "Would you like to process this file now? [Y/n]" msgstr "" -#: src/script/arch-update.sh:524 +#: src/script/arch-update.sh:525 #, sh-format msgid "Would you like to process these files now? [Y/n]" msgstr "" -#: src/script/arch-update.sh:530 +#: src/script/arch-update.sh:531 #, sh-format msgid "Processing Pacnew Files...\\n" msgstr "" -#: src/script/arch-update.sh:534 +#: src/script/arch-update.sh:535 #, sh-format msgid "The pacnew file(s) processing has been applied\\n" msgstr "" -#: src/script/arch-update.sh:537 +#: src/script/arch-update.sh:538 #, sh-format msgid "The pacnew file(s) processing hasn't been applied\\n" msgstr "" -#: src/script/arch-update.sh:541 +#: src/script/arch-update.sh:542 #, sh-format msgid "No pacnew file found\\n" msgstr "" -#: src/script/arch-update.sh:554 +#: src/script/arch-update.sh:555 #, sh-format msgid "" "Reboot required:\\nThere's a pending kernel update on your system requiring " "a reboot to be applied\\n" msgstr "" -#: src/script/arch-update.sh:555 +#: src/script/arch-update.sh:556 #, sh-format msgid "Would you like to reboot now? [y/N]" msgstr "" -#: src/script/arch-update.sh:560 +#: src/script/arch-update.sh:561 #, sh-format msgid "Rebooting in 5 seconds...\\nPress ctrl+c to abort" msgstr "" -#: src/script/arch-update.sh:564 +#: src/script/arch-update.sh:565 #, sh-format msgid "" "An error has occurred during the reboot process\\nThe reboot has been " "aborted\\n" msgstr "" -#: src/script/arch-update.sh:572 +#: src/script/arch-update.sh:573 #, sh-format msgid "" "The reboot hasn't been performed\\nPlease, consider rebooting to finalize " "the pending kernel update\\n" msgstr "" -#: src/script/arch-update.sh:576 +#: src/script/arch-update.sh:577 #, sh-format msgid "No pending kernel update found\\n" msgstr "" -#: src/script/arch-update.sh:589 +#: src/script/arch-update.sh:590 #, sh-format msgid "" "NoNews option detected\\nPlease, keep in mind that users are expected to " diff --git a/src/script/arch-update.sh b/src/script/arch-update.sh index 251ca38..857618a 100755 --- a/src/script/arch-update.sh +++ b/src/script/arch-update.sh @@ -11,7 +11,8 @@ version="1.10.1" option="${1}" # Declare necessary parameters for translations -. gettext.sh # shellcheck disable=SC1091 +# shellcheck disable=SC1091 +. gettext.sh export TEXTDOMAIN="${_name}" # Using "Arch-Update" as TEXTDOMAIN to avoid conflicting with the "arch-update" TEXTDOMAIN used by the arch-update Gnome extension (https://extensions.gnome.org/extension/1010/archlinux-updates-indicator/) if find /usr/local/share/locale/*/LC_MESSAGES/"${_name}".mo &> /dev/null; then export TEXTDOMAINDIR="/usr/local/share/locale"