From c4b2af807348dc47192262f839d807e2bf2c8da7 Mon Sep 17 00:00:00 2001 From: Anthony Axenov Date: Fri, 17 Jan 2025 19:07:28 +0800 Subject: [PATCH] new shebangs --- README.md | 2 +- dotfiles/.bash_aliases | 2 +- gen-makefile | 2 +- helpers.sh | 2 +- helpers/basic.sh | 2 +- helpers/debug.sh | 2 +- helpers/docker.sh | 2 +- helpers/git.sh | 2 +- helpers/io.sh | 2 +- helpers/log.sh | 2 +- helpers/misc.sh | 2 +- helpers/notifications.sh | 2 +- helpers/packages.sh | 2 +- helpers/testing.sh | 2 +- install/apache2 | 2 +- install/apt | 2 +- install/canon-mg2500 | 2 +- install/chrome | 2 +- install/composer | 2 +- install/docker | 2 +- install/dots | 2 +- install/droidcam | 2 +- install/droidcam-obs | 2 +- install/flameshot | 2 +- install/frkn | 2 +- install/git | 2 +- install/golang | 2 +- install/grub-customizer | 2 +- install/jbmono | 2 +- install/kde-appmenu | 2 +- install/kde-backports | 2 +- install/kde-file-templates | 4 ++-- install/kde-portal | 2 +- install/lazynvim | 2 +- install/libreoffice | 2 +- install/lite-xl | 2 +- install/mariadb | 2 +- install/nodejs | 2 +- install/ntfy | 2 +- install/obs-studio | 2 +- install/omz-clean | 2 +- install/omz-fancy | 2 +- install/openvpn | 2 +- install/papirus | 2 +- install/pgsql | 2 +- install/php | 2 +- install/php-psalm | 2 +- install/php-spx | 2 +- install/phpcs | 2 +- install/phpmd | 2 +- install/phpstan | 2 +- install/phpunit | 2 +- install/postman | 2 +- install/qt5 | 2 +- install/rustdesk | 2 +- install/snap | 2 +- install/sublimemerge | 2 +- install/sublimetext | 2 +- install/syncthing | 2 +- install/telebit | 2 +- install/telegram | 2 +- install/ulauncher | 2 +- install/vivaldi | 2 +- install/vscode | 2 +- install/wine | 2 +- install/youtube-dl | 2 +- install/ytdlcue | 2 +- install/zint | 2 +- install/zsh | 2 +- tools/basic-ubuntu-lemp.sh | 2 +- tools/dc | 2 +- tools/display-resolution.sh | 2 +- tools/fix-obs-vcam.sh | 2 +- tools/free-space.sh | 2 +- tools/frkn.sh | 2 +- tools/ignore-veth.sh | 2 +- tools/init-home-mediasrv.sh | 2 +- tools/inotifywait-cp.sh | 2 +- tools/inotifywait-cp/inotifywait-cp.sh | 2 +- tools/netbeans-php-wrapper/php | 2 +- tools/quick-backup.sh | 2 +- tools/rsync-backup.sh | 2 +- tools/rutracker.sh | 2 +- tools/s3-backup-old.sh | 2 +- tools/s3-backup.sh | 2 +- tools/setup-wakeonlan.sh | 2 +- tools/upgrade-ubuntu.sh | 2 +- tools/vscode-ext.sh | 2 +- tools/ytdlcue.sh | 2 +- uninstall/apache2 | 2 +- uninstall/canon-mg2500 | 2 +- uninstall/chrome | 2 +- uninstall/composer | 2 +- uninstall/docker | 2 +- uninstall/grub-customizer | 2 +- uninstall/lazynvim | 2 +- uninstall/lite-xl | 2 +- uninstall/omz | 2 +- uninstall/sublimemerge | 2 +- uninstall/sublimetext | 2 +- uninstall/vivaldi | 2 +- upgrade/omz | 2 +- 102 files changed, 103 insertions(+), 103 deletions(-) diff --git a/README.md b/README.md index d290b53..b7cf136 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ cd my-env && make 1. Create a new shell script in `./install`, `./upgrade` or `./uninstall` directory. At the beggining of a file you must write these two lines: ```shell - #!/bin/bash + #!/usr/bin/env bash ##makedesc: Your description for Makefile ``` 2. Make this script executable, e.g.: diff --git a/dotfiles/.bash_aliases b/dotfiles/.bash_aliases index a4b5e37..9bed106 100644 --- a/dotfiles/.bash_aliases +++ b/dotfiles/.bash_aliases @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # alias bashrc='source ~/.bashrc' alias zshrc='source ~/.zshrc' diff --git a/gen-makefile b/gen-makefile index 725ce40..cb56d2c 100755 --- a/gen-makefile +++ b/gen-makefile @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash [ -f Makefile ] && mv Makefile Makefile.bak CHR_UPGRADE='^' CHR_UNINSTALL='/' diff --git a/helpers.sh b/helpers.sh index 2471a01..a3fceaf 100644 --- a/helpers.sh +++ b/helpers.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -oe pipefail __root__=$( dirname $(readlink -e -- "${BASH_SOURCE}")) diff --git a/helpers/basic.sh b/helpers/basic.sh index 4a68ce7..e3e9ed4 100644 --- a/helpers/basic.sh +++ b/helpers/basic.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash source $( dirname $(readlink -e -- "${BASH_SOURCE}"))/io.sh || exit 255 ######################################################## diff --git a/helpers/debug.sh b/helpers/debug.sh index 1efe3a2..43e2101 100644 --- a/helpers/debug.sh +++ b/helpers/debug.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash source $( dirname $(readlink -e -- "${BASH_SOURCE}"))/io.sh || exit 255 ######################################################## diff --git a/helpers/docker.sh b/helpers/docker.sh index 3a24c46..3fa8229 100644 --- a/helpers/docker.sh +++ b/helpers/docker.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ######################################################## # Docker wrappers diff --git a/helpers/git.sh b/helpers/git.sh index 697ce05..477fc6a 100644 --- a/helpers/git.sh +++ b/helpers/git.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash _dir=$( dirname $(readlink -e -- "${BASH_SOURCE}")) source $_dir/io.sh || exit 255 source $_dir/basic.sh || exit 255 diff --git a/helpers/io.sh b/helpers/io.sh index ae8fc6f..063b866 100644 --- a/helpers/io.sh +++ b/helpers/io.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ######################################################## # Simple and fancy input & output diff --git a/helpers/log.sh b/helpers/log.sh index a1d9c6e..78a8cea 100644 --- a/helpers/log.sh +++ b/helpers/log.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ######################################################## # Logging functions diff --git a/helpers/misc.sh b/helpers/misc.sh index 649d592..199d335 100644 --- a/helpers/misc.sh +++ b/helpers/misc.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ######################################################## # Misc diff --git a/helpers/notifications.sh b/helpers/notifications.sh index b81abce..5a5e66a 100644 --- a/helpers/notifications.sh +++ b/helpers/notifications.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash source $( dirname $(readlink -e -- "${BASH_SOURCE}"))/packages.sh || exit 255 ######################################################## diff --git a/helpers/packages.sh b/helpers/packages.sh index e98afae..750563a 100644 --- a/helpers/packages.sh +++ b/helpers/packages.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash source $( dirname $(readlink -e -- "${BASH_SOURCE}"))/io.sh || exit 255 ######################################################## diff --git a/helpers/testing.sh b/helpers/testing.sh index f4fa0ae..d3c887c 100644 --- a/helpers/testing.sh +++ b/helpers/testing.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash source $( dirname $(readlink -e -- "${BASH_SOURCE}"))/io.sh || exit 255 ######################################################## diff --git a/install/apache2 b/install/apache2 index a33b3ec..4907851 100755 --- a/install/apache2 +++ b/install/apache2 @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install apache2 (latest) source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 255 diff --git a/install/apt b/install/apt index b25a512..b918b2c 100755 --- a/install/apt +++ b/install/apt @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install software from apt sudo apt update && \ diff --git a/install/canon-mg2500 b/install/canon-mg2500 index dc9e132..536e058 100755 --- a/install/canon-mg2500 +++ b/install/canon-mg2500 @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install Canon Pixma MG2500 + ppa source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 255 diff --git a/install/chrome b/install/chrome index f4dd354..4fe1cf9 100755 --- a/install/chrome +++ b/install/chrome @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install google chrome (latest) source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 255 diff --git a/install/composer b/install/composer index 136c3de..5a7e29c 100755 --- a/install/composer +++ b/install/composer @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install composer (latest) here=$( dirname $(readlink -e -- "${BASH_SOURCE}")) source "$here/../helpers.sh" || exit 255 diff --git a/install/docker b/install/docker index d9b2401..231172f 100755 --- a/install/docker +++ b/install/docker @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install docker (latest) + ppa source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 255 diff --git a/install/dots b/install/dots index dd35cac..c171ac7 100755 --- a/install/dots +++ b/install/dots @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install dotfiles source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 255 diff --git a/install/droidcam b/install/droidcam index 31a194a..dab4935 100755 --- a/install/droidcam +++ b/install/droidcam @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install droidcam v1.9.0 source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 255 diff --git a/install/droidcam-obs b/install/droidcam-obs index 0949757..7d8ef63 100755 --- a/install/droidcam-obs +++ b/install/droidcam-obs @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install droidcam-obs plugin v1.5.1 #TODO diff --git a/install/flameshot b/install/flameshot index 3666346..34f29de 100755 --- a/install/flameshot +++ b/install/flameshot @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install flameshot (latest) source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 255 diff --git a/install/frkn b/install/frkn index 9d0b394..c4a4fa5 100755 --- a/install/frkn +++ b/install/frkn @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install Wireguard + FRKN source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 255 diff --git a/install/git b/install/git index 31d10c2..8df72b8 100755 --- a/install/git +++ b/install/git @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install git (latest) source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 255 diff --git a/install/golang b/install/golang index fb727e8..05be71a 100755 --- a/install/golang +++ b/install/golang @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install golang v1.21.0 source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 255 diff --git a/install/grub-customizer b/install/grub-customizer index eaeeb52..18ec858 100755 --- a/install/grub-customizer +++ b/install/grub-customizer @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install grub-customizer (latest + ppa) source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 255 diff --git a/install/jbmono b/install/jbmono index a721a41..c36de48 100755 --- a/install/jbmono +++ b/install/jbmono @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install JetBrains Mono fonts source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 255 diff --git a/install/kde-appmenu b/install/kde-appmenu index 456e866..dd0f8a5 100755 --- a/install/kde-appmenu +++ b/install/kde-appmenu @@ -1,4 +1,4 @@ -#!/bin/bash (latest) +#!/usr/bin/env bash (latest) ##makedesc: Install KDE Window AppMenu Applet echo diff --git a/install/kde-backports b/install/kde-backports index 564ddcd..83ca2a9 100755 --- a/install/kde-backports +++ b/install/kde-backports @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install KDE Backports source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 255 diff --git a/install/kde-file-templates b/install/kde-file-templates index f0f7c53..fe85064 100755 --- a/install/kde-file-templates +++ b/install/kde-file-templates @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install file templates (KDE) echo @@ -48,7 +48,7 @@ EOF echo "- Shell" #################################################### cat < "$TPL_SRC/template.sh" -#!/bin/bash +#!/usr/bin/env bash EOF cat << EOF > "$TPL_DIR/sh.desktop" diff --git a/install/kde-portal b/install/kde-portal index 930e90a..79bb4e0 100755 --- a/install/kde-portal +++ b/install/kde-portal @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install KDE portal echo diff --git a/install/lazynvim b/install/lazynvim index c840285..a2039cc 100755 --- a/install/lazynvim +++ b/install/lazynvim @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # https://www.devas.life/effective-neovim-setup-for-web-development-towards-2024/ set -eo pipefail diff --git a/install/libreoffice b/install/libreoffice index 47a4c5b..bee58d2 100755 --- a/install/libreoffice +++ b/install/libreoffice @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install libreoffice echo diff --git a/install/lite-xl b/install/lite-xl index 09579b0..9a170b5 100755 --- a/install/lite-xl +++ b/install/lite-xl @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install lite-xl # https://github.com/lite-xl/lite-xl/releases diff --git a/install/mariadb b/install/mariadb index 149d14d..afbf3b1 100755 --- a/install/mariadb +++ b/install/mariadb @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install mariadb (latest) and php-mysql + phpMyAdmin (if php is installed) echo diff --git a/install/nodejs b/install/nodejs index 02e6fcf..ab55a79 100755 --- a/install/nodejs +++ b/install/nodejs @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install nodejs + npm via nvm echo diff --git a/install/ntfy b/install/ntfy index b4d9886..ba1557a 100755 --- a/install/ntfy +++ b/install/ntfy @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install ntfy (latest) + ppa echo diff --git a/install/obs-studio b/install/obs-studio index 1280b7d..b0b02b6 100755 --- a/install/obs-studio +++ b/install/obs-studio @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install obs-studio (latest snap) echo diff --git a/install/omz-clean b/install/omz-clean index 713865a..83b2ac2 100755 --- a/install/omz-clean +++ b/install/omz-clean @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install omz (latest) echo diff --git a/install/omz-fancy b/install/omz-fancy index cf807fb..a4701bb 100755 --- a/install/omz-fancy +++ b/install/omz-fancy @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install omz fancy (powerline10k + MesloLGS font) # https://gist.github.com/anthonyaxenov/b8460935d06b9f0da72def03d0f26515 diff --git a/install/openvpn b/install/openvpn index 3ee24b3..748df8d 100755 --- a/install/openvpn +++ b/install/openvpn @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install openvpn v2.6.3 (src) source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 255 diff --git a/install/papirus b/install/papirus index baa9708..29407bc 100755 --- a/install/papirus +++ b/install/papirus @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install papirus-icon-theme (latest) source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 255 diff --git a/install/pgsql b/install/pgsql index b159b14..afd9523 100755 --- a/install/pgsql +++ b/install/pgsql @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install postgresql (latest) and php-pgsql (if php is installed) source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 255 diff --git a/install/php b/install/php index 3d9012a..7659046 100755 --- a/install/php +++ b/install/php @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install php v8.3 + ppa [ $1 ] && PHPVER="$1" || PHPVER="8.3" diff --git a/install/php-psalm b/install/php-psalm index 7fee67c..0ba1bb9 100755 --- a/install/php-psalm +++ b/install/php-psalm @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install psalm echo diff --git a/install/php-spx b/install/php-spx index edf5814..e6f6615 100755 --- a/install/php-spx +++ b/install/php-spx @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install php-spx echo diff --git a/install/phpcs b/install/phpcs index 163bc6a..1b93731 100755 --- a/install/phpcs +++ b/install/phpcs @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install phpcs + php-cs-fixer echo diff --git a/install/phpmd b/install/phpmd index c1124d8..d7efa8a 100755 --- a/install/phpmd +++ b/install/phpmd @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install phpmd echo diff --git a/install/phpstan b/install/phpstan index ba2ac3f..ff475d2 100755 --- a/install/phpstan +++ b/install/phpstan @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install phpstan echo diff --git a/install/phpunit b/install/phpunit index 584df44..fd63070 100755 --- a/install/phpunit +++ b/install/phpunit @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install phpunit echo diff --git a/install/postman b/install/postman index ff8932a..2d2db9a 100755 --- a/install/postman +++ b/install/postman @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install postman (latest) source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 255 diff --git a/install/qt5 b/install/qt5 index f946cf4..127f760 100755 --- a/install/qt5 +++ b/install/qt5 @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install qt5 echo diff --git a/install/rustdesk b/install/rustdesk index 3325e78..b0c95b4 100755 --- a/install/rustdesk +++ b/install/rustdesk @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install rustdesk client v1.1.9 (deb) [ $1 ] && RDVER="$1" || RDVER="1.1.9" diff --git a/install/snap b/install/snap index bdb804c..783934d 100755 --- a/install/snap +++ b/install/snap @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install bunch of software from snap echo diff --git a/install/sublimemerge b/install/sublimemerge index 71d5517..4cbbc51 100755 --- a/install/sublimemerge +++ b/install/sublimemerge @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install Sublime Merge source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 255 diff --git a/install/sublimetext b/install/sublimetext index a02b0b5..9788dc4 100755 --- a/install/sublimetext +++ b/install/sublimetext @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install Sublime Text source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 255 diff --git a/install/syncthing b/install/syncthing index 514403f..cda890a 100755 --- a/install/syncthing +++ b/install/syncthing @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install syncthing (latest) + ppa echo diff --git a/install/telebit b/install/telebit index 8164340..4e45a06 100755 --- a/install/telebit +++ b/install/telebit @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install telebit (latest) echo diff --git a/install/telegram b/install/telegram index ea5bb35..1cbe96a 100755 --- a/install/telegram +++ b/install/telegram @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install telegram (latest) echo diff --git a/install/ulauncher b/install/ulauncher index e50fcc2..5bd6f4f 100755 --- a/install/ulauncher +++ b/install/ulauncher @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install ulauncher (latest) + ppa echo diff --git a/install/vivaldi b/install/vivaldi index d8c443d..60d905a 100755 --- a/install/vivaldi +++ b/install/vivaldi @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install Vivaldi + ppa # https://repo.vivaldi.com diff --git a/install/vscode b/install/vscode index ea0d91c..6d10571 100755 --- a/install/vscode +++ b/install/vscode @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: VSCode deb-package source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 255 diff --git a/install/wine b/install/wine index 8b42e73..b3cdadb 100755 --- a/install/wine +++ b/install/wine @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install wine (latest) + ppa (focal) echo diff --git a/install/youtube-dl b/install/youtube-dl index 0d4204c..4276fe0 100755 --- a/install/youtube-dl +++ b/install/youtube-dl @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install youtube-dl (src) # https://github.com/ytdl-org/youtube-dl#installation diff --git a/install/ytdlcue b/install/ytdlcue index 1cf7533..6639cf2 100755 --- a/install/ytdlcue +++ b/install/ytdlcue @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install ytdlcue # https://gist.github.com/anthonyaxenov/8e11f18493c8419ee7abc94a8ea0cfaf diff --git a/install/zint b/install/zint index fac055b..9b340bc 100755 --- a/install/zint +++ b/install/zint @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install zint (latest) echo diff --git a/install/zsh b/install/zsh index 2e73d2e..3a52923 100755 --- a/install/zsh +++ b/install/zsh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Install vanilla zsh echo diff --git a/tools/basic-ubuntu-lemp.sh b/tools/basic-ubuntu-lemp.sh index 833ca26..3777638 100644 --- a/tools/basic-ubuntu-lemp.sh +++ b/tools/basic-ubuntu-lemp.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash apt update && apt upgrade -y --autoremove apt install -y \ diff --git a/tools/dc b/tools/dc index d64a048..6a1ba11 100644 --- a/tools/dc +++ b/tools/dc @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash CONTAINER="my-container" # the name of the container in which to 'exec' something CONFIG="$(dirname $([ -L $0 ] && readlink -f $0 || echo $0))/docker-compose.yml" # path to compose yml file CMD="docker-compose -f $CONFIG" # docker-compose command diff --git a/tools/display-resolution.sh b/tools/display-resolution.sh index 8ec6120..97e0663 100755 --- a/tools/display-resolution.sh +++ b/tools/display-resolution.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # https://gist.github.com/anthonyaxenov/c16e1181d4b8a8644c57ec8a1f6cf21c ######################################################################### # # diff --git a/tools/fix-obs-vcam.sh b/tools/fix-obs-vcam.sh index ac2d209..fc61ec0 100755 --- a/tools/fix-obs-vcam.sh +++ b/tools/fix-obs-vcam.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # https://obsproject.com/kb/virtual-camera-troubleshooting # https://obsproject.com/forum/threads/how-to-start-virtual-camera-without-sudo-privileges.139783/ diff --git a/tools/free-space.sh b/tools/free-space.sh index 8c7b27a..64b8b8e 100755 --- a/tools/free-space.sh +++ b/tools/free-space.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Очистка места на диске # https://gist.github.com/anthonyaxenov/02c00c965be4eb5bb163a153abdf4c2b # https://itsfoss.com/free-up-space-ubuntu-linux/ diff --git a/tools/frkn.sh b/tools/frkn.sh index a4cf3f6..d64ba9c 100755 --- a/tools/frkn.sh +++ b/tools/frkn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash function disconnect() { echo "Disconnecting: $1" diff --git a/tools/ignore-veth.sh b/tools/ignore-veth.sh index 7a84b2d..f1905f7 100755 --- a/tools/ignore-veth.sh +++ b/tools/ignore-veth.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # https://forums.opensuse.org/t/networkmanager-shows-connection-to-lo/164441/13 # https://man.archlinux.org/man/NetworkManager.conf.5.en#Device_List_Format # https://access.redhat.com/documentation/ru-ru/red_hat_enterprise_linux/8/html/configuring_and_managing_networking/configuring-networkmanager-to-ignore-certain-devices_configuring-and-managing-networking diff --git a/tools/init-home-mediasrv.sh b/tools/init-home-mediasrv.sh index f07520f..01f548b 100644 --- a/tools/init-home-mediasrv.sh +++ b/tools/init-home-mediasrv.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash sudo apt update && sudo apt upgrade -y --autoremove sudo apt install -y \ diff --git a/tools/inotifywait-cp.sh b/tools/inotifywait-cp.sh index 9bfabd6..274acf8 100755 --- a/tools/inotifywait-cp.sh +++ b/tools/inotifywait-cp.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # My use case: # syncthing synchronizes ALL changes in DCIM directory on my android to PC. # I wanted files to be copied somewhere else on my PC to stay forever, so I diff --git a/tools/inotifywait-cp/inotifywait-cp.sh b/tools/inotifywait-cp/inotifywait-cp.sh index b743933..586b200 100644 --- a/tools/inotifywait-cp/inotifywait-cp.sh +++ b/tools/inotifywait-cp/inotifywait-cp.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # My use case: # syncthing synchronizes ALL changes in DCIM directory on my android to PC. # I wanted files to be copied somewhere else on my PC to stay forever, so I diff --git a/tools/netbeans-php-wrapper/php b/tools/netbeans-php-wrapper/php index 77c5792..2cb6713 100644 --- a/tools/netbeans-php-wrapper/php +++ b/tools/netbeans-php-wrapper/php @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Welcome to amusement park! diff --git a/tools/quick-backup.sh b/tools/quick-backup.sh index b053bc0..eef5d14 100755 --- a/tools/quick-backup.sh +++ b/tools/quick-backup.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # https://gist.github.com/anthonyaxenov/b8336a2bc9e6a742b5a050fa2588d71e ##################################################################### # # diff --git a/tools/rsync-backup.sh b/tools/rsync-backup.sh index 96f868d..ddfe8ba 100755 --- a/tools/rsync-backup.sh +++ b/tools/rsync-backup.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash RS_SRC_DEV=/dev/sdb1 RS_DST_DEV=/dev/sdc1 diff --git a/tools/rutracker.sh b/tools/rutracker.sh index 0ae578e..2197486 100755 --- a/tools/rutracker.sh +++ b/tools/rutracker.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash echo "# https://rutracker.net/forum/viewtopic.php?p=75274766#75274766" | sudo tee -a /etc/hosts # > /dev/null echo "185.15.211.203 bt.t-ru.org" | sudo tee -a /etc/hosts # > /dev/null diff --git a/tools/s3-backup-old.sh b/tools/s3-backup-old.sh index b348bed..cc83a84 100755 --- a/tools/s3-backup-old.sh +++ b/tools/s3-backup-old.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash TTL_DAYS=1 S3="s3://......" diff --git a/tools/s3-backup.sh b/tools/s3-backup.sh index 7edae02..4e70a21 100644 --- a/tools/s3-backup.sh +++ b/tools/s3-backup.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##################################################################### # # # Stupidly simple backup script for own projects # diff --git a/tools/setup-wakeonlan.sh b/tools/setup-wakeonlan.sh index b8e50ad..5056509 100755 --- a/tools/setup-wakeonlan.sh +++ b/tools/setup-wakeonlan.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash print() { echo -e "$*" diff --git a/tools/upgrade-ubuntu.sh b/tools/upgrade-ubuntu.sh index b4671d6..489d2ad 100755 --- a/tools/upgrade-ubuntu.sh +++ b/tools/upgrade-ubuntu.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # https://dev.to/chefgs/upgrading-an-end-of-life-eol-ubuntu-os-to-lts-version-3a36 # https://changelogs.ubuntu.com/meta-release diff --git a/tools/vscode-ext.sh b/tools/vscode-ext.sh index d5d4e24..2d029c7 100644 --- a/tools/vscode-ext.sh +++ b/tools/vscode-ext.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash exts=( 'af4jm.vscode-m3u' 'ahmadalli.vscode-nginx-conf' diff --git a/tools/ytdlcue.sh b/tools/ytdlcue.sh index 9695ee2..6d799a6 100644 --- a/tools/ytdlcue.sh +++ b/tools/ytdlcue.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # CUE-sheet generator for youtube-dl # Usage: diff --git a/uninstall/apache2 b/uninstall/apache2 index d08699e..aa232c4 100755 --- a/uninstall/apache2 +++ b/uninstall/apache2 @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Uninstall apache2 source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 255 diff --git a/uninstall/canon-mg2500 b/uninstall/canon-mg2500 index 2b3623d..4d9641e 100755 --- a/uninstall/canon-mg2500 +++ b/uninstall/canon-mg2500 @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Uninstall Canon Pixma MG2500 + ppa source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 255 diff --git a/uninstall/chrome b/uninstall/chrome index f030a7a..d23b292 100755 --- a/uninstall/chrome +++ b/uninstall/chrome @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Uninstall google chrome source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 255 diff --git a/uninstall/composer b/uninstall/composer index 46da440..d4b90cb 100755 --- a/uninstall/composer +++ b/uninstall/composer @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Uninstall composer source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 255 diff --git a/uninstall/docker b/uninstall/docker index c110cfd..50ac75d 100755 --- a/uninstall/docker +++ b/uninstall/docker @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Uninstall docker + ppa source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 255 diff --git a/uninstall/grub-customizer b/uninstall/grub-customizer index 292a4ca..24e82b6 100755 --- a/uninstall/grub-customizer +++ b/uninstall/grub-customizer @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Uninstall grub-customizer with ppa source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 255 diff --git a/uninstall/lazynvim b/uninstall/lazynvim index 12aa285..624caeb 100755 --- a/uninstall/lazynvim +++ b/uninstall/lazynvim @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eo pipefail trap ontrap SIGINT SIGTERM SIGSTOP diff --git a/uninstall/lite-xl b/uninstall/lite-xl index 10cf21f..2fcd5d6 100755 --- a/uninstall/lite-xl +++ b/uninstall/lite-xl @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Uninstall lite-xl echo diff --git a/uninstall/omz b/uninstall/omz index c6e9c11..2693181 100755 --- a/uninstall/omz +++ b/uninstall/omz @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Uninstall omz echo diff --git a/uninstall/sublimemerge b/uninstall/sublimemerge index e9315b6..b5a47b9 100755 --- a/uninstall/sublimemerge +++ b/uninstall/sublimemerge @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Uninstall Sublime Merge source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 255 diff --git a/uninstall/sublimetext b/uninstall/sublimetext index 0cb7d58..2208284 100755 --- a/uninstall/sublimetext +++ b/uninstall/sublimetext @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Uninstall Sublime Text source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 255 diff --git a/uninstall/vivaldi b/uninstall/vivaldi index 0e97884..a047fe1 100755 --- a/uninstall/vivaldi +++ b/uninstall/vivaldi @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Uninstall vivaldi + ppa echo diff --git a/upgrade/omz b/upgrade/omz index beb339a..f4f5d60 100755 --- a/upgrade/omz +++ b/upgrade/omz @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ##makedesc: Upgrade omz echo