new shebangs

This commit is contained in:
Anthony Axenov 2025-01-17 19:07:28 +08:00
parent 45499ca5df
commit c4b2af8073
Signed by: anthony
GPG Key ID: EA9EC32FF7CCD4EC
102 changed files with 103 additions and 103 deletions

View File

@ -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.:

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# alias bashrc='source ~/.bashrc'
alias zshrc='source ~/.zshrc'

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
[ -f Makefile ] && mv Makefile Makefile.bak
CHR_UPGRADE='^'
CHR_UNINSTALL='/'

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -oe pipefail
__root__=$( dirname $(readlink -e -- "${BASH_SOURCE}"))

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
source $( dirname $(readlink -e -- "${BASH_SOURCE}"))/io.sh || exit 255
########################################################

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
source $( dirname $(readlink -e -- "${BASH_SOURCE}"))/io.sh || exit 255
########################################################

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
########################################################
# Docker wrappers

View File

@ -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

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
########################################################
# Simple and fancy input & output

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
########################################################
# Logging functions

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
########################################################
# Misc

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
source $( dirname $(readlink -e -- "${BASH_SOURCE}"))/packages.sh || exit 255
########################################################

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
source $( dirname $(readlink -e -- "${BASH_SOURCE}"))/io.sh || exit 255
########################################################

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
source $( dirname $(readlink -e -- "${BASH_SOURCE}"))/io.sh || exit 255
########################################################

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Install apache2 (latest)
source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 255

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Install software from apt
sudo apt update && \

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Install dotfiles
source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 255

View File

@ -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

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Install droidcam-obs plugin v1.5.1
#TODO

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Install flameshot (latest)
source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 255

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Install Wireguard + FRKN
source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 255

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Install git (latest)
source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 255

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,4 +1,4 @@
#!/bin/bash (latest)
#!/usr/bin/env bash (latest)
##makedesc: Install KDE Window AppMenu Applet
echo

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Install KDE Backports
source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 255

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Install file templates (KDE)
echo
@ -48,7 +48,7 @@ EOF
echo "- Shell" ####################################################
cat <<EOF > "$TPL_SRC/template.sh"
#!/bin/bash
#!/usr/bin/env bash
EOF
cat << EOF > "$TPL_DIR/sh.desktop"

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Install KDE portal
echo

View File

@ -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

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Install libreoffice
echo

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Install lite-xl
# https://github.com/lite-xl/lite-xl/releases

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Install mariadb (latest) and php-mysql + phpMyAdmin (if php is installed)
echo

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Install nodejs + npm via nvm
echo

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Install ntfy (latest) + ppa
echo

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Install obs-studio (latest snap)
echo

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Install omz (latest)
echo

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Install omz fancy (powerline10k + MesloLGS font)
# https://gist.github.com/anthonyaxenov/b8460935d06b9f0da72def03d0f26515

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Install php v8.3 + ppa
[ $1 ] && PHPVER="$1" || PHPVER="8.3"

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Install psalm
echo

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Install php-spx
echo

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Install phpcs + php-cs-fixer
echo

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Install phpmd
echo

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Install phpstan
echo

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Install phpunit
echo

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Install postman (latest)
source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 255

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Install qt5
echo

View File

@ -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"

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Install bunch of software from snap
echo

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Install Sublime Merge
source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 255

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Install Sublime Text
source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 255

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Install syncthing (latest) + ppa
echo

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Install telebit (latest)
echo

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Install telegram (latest)
echo

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Install ulauncher (latest) + ppa
echo

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Install Vivaldi + ppa
# https://repo.vivaldi.com

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: VSCode deb-package
source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 255

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Install wine (latest) + ppa (focal)
echo

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Install youtube-dl (src)
# https://github.com/ytdl-org/youtube-dl#installation

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Install ytdlcue
# https://gist.github.com/anthonyaxenov/8e11f18493c8419ee7abc94a8ea0cfaf

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Install zint (latest)
echo

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Install vanilla zsh
echo

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
apt update && apt upgrade -y --autoremove
apt install -y \

View File

@ -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

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# https://gist.github.com/anthonyaxenov/c16e1181d4b8a8644c57ec8a1f6cf21c
#########################################################################
# #

View File

@ -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/

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Очистка места на диске
# https://gist.github.com/anthonyaxenov/02c00c965be4eb5bb163a153abdf4c2b
# https://itsfoss.com/free-up-space-ubuntu-linux/

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
function disconnect() {
echo "Disconnecting: $1"

View File

@ -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

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
sudo apt update && sudo apt upgrade -y --autoremove
sudo apt install -y \

View File

@ -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

View File

@ -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

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Welcome to amusement park!

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# https://gist.github.com/anthonyaxenov/b8336a2bc9e6a742b5a050fa2588d71e
#####################################################################
# #

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
RS_SRC_DEV=/dev/sdb1
RS_DST_DEV=/dev/sdc1

View File

@ -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

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
TTL_DAYS=1
S3="s3://......"

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#####################################################################
# #
# Stupidly simple backup script for own projects #

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
print() {
echo -e "$*"

View File

@ -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

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
exts=(
'af4jm.vscode-m3u'
'ahmadalli.vscode-nginx-conf'

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# CUE-sheet generator for youtube-dl
# Usage:

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Uninstall apache2
source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 255

View File

@ -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

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Uninstall google chrome
source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 255

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Uninstall composer
source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 255

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Uninstall docker + ppa
source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 255

View File

@ -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

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -eo pipefail
trap ontrap SIGINT SIGTERM SIGSTOP

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Uninstall lite-xl
echo

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Uninstall omz
echo

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Uninstall Sublime Merge
source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 255

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
##makedesc: Uninstall Sublime Text
source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 255

Some files were not shown because too many files have changed in this diff Show More