From 9f7f550b5e1a1fa3dad6ed7d6e2ba3ca74f9762b Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Tue, 28 Dec 2021 02:54:26 -0600 Subject: [PATCH] switch bash to sh --- OneDriveSync | 2 +- bluetooth-toggle | 2 +- huion-tablet-setup.sh | 4 ++-- impfilesbk | 2 +- latex-cleanup | 2 +- makebk | 2 +- totrash | 2 +- touch2 | 2 +- turbo-boost | 2 +- turbo-boost-startup | 2 +- wifi-toggle | 2 +- 11 files changed, 12 insertions(+), 12 deletions(-) diff --git a/OneDriveSync b/OneDriveSync index 06241e6..2cd8c70 100644 --- a/OneDriveSync +++ b/OneDriveSync @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh if [ $(id -u) -eq 0 ]; then exec sudo -H -u $0 "$@" diff --git a/bluetooth-toggle b/bluetooth-toggle index 659c19c..f341e05 100644 --- a/bluetooth-toggle +++ b/bluetooth-toggle @@ -1,7 +1,7 @@ # Toggles bluetooth on a Linux system. Make sure that you have bluetoothctl installed. # I use it with a shortcut. -#!/bin/bash +#!/bin/sh if [ $(bluetoothctl show | grep Powered | grep -c yes) -eq 1 ]; then bluetoothctl power off diff --git a/huion-tablet-setup.sh b/huion-tablet-setup.sh index 0a22d07..aa2e9dd 100644 --- a/huion-tablet-setup.sh +++ b/huion-tablet-setup.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # Steps for setting up the drivers of Huion Inspiroy H640P @@ -11,7 +11,7 @@ # ACTION=="add", ATTRS{idVendor}=="256c", ATTRS{idProduct}=="006d", ENV{XAUTHORITY}="/home/sintan/.Xauthority", ENV{DISPLAY}=":0", OWNER=, RUN+="/usr/local/bin/huion-tablet-mount" # Make /usr/local/bin/huion-tablet-mount with this content : -# #!/bin/bash +# #!/bin/sh # & exit # Make sure to install xf86-input-wacom (might have to restart) diff --git a/impfilesbk b/impfilesbk index 12ee63e..7c605df 100644 --- a/impfilesbk +++ b/impfilesbk @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # This script backs up some important stuff diff --git a/latex-cleanup b/latex-cleanup index 8720a54..3c7a912 100644 --- a/latex-cleanup +++ b/latex-cleanup @@ -1,6 +1,6 @@ # I use it to clean up latex build files from a directory after I'm done with the project. -#!/bin/bash +#!/bin/sh for f in *.tex; do h=$(basename "$f" .tex) diff --git a/makebk b/makebk index 2da5ee0..7fdd350 100644 --- a/makebk +++ b/makebk @@ -1,6 +1,6 @@ # This simply makes a backup of a file as filename.bak -#!/bin/bash +#!/bin/sh if [[ -n "$1" ]]; then diff --git a/totrash b/totrash index 159ac10..dcdfc8e 100644 --- a/totrash +++ b/totrash @@ -1,6 +1,6 @@ # It simply moves files to trash:/ in KDE -#!/bin/bash +#!/bin/sh # Move files to trash:/ kioclient5 move "$@" trash:/ diff --git a/touch2 b/touch2 index 90fc347..02d8202 100644 --- a/touch2 +++ b/touch2 @@ -1,5 +1,5 @@ # It makes the parent folders (if needed) while touch-ing. -#!/bin/bash +#!/bin/sh mkdir -p "$(dirname "$1")" && touch "$1" diff --git a/turbo-boost b/turbo-boost index d7b6aa4..ed53a33 100644 --- a/turbo-boost +++ b/turbo-boost @@ -1,6 +1,6 @@ # This is to toggle intel turbo boost. -#!/bin/bash +#!/bin/sh if [[ -z $(which rdmsr) ]]; then echo "msr-tools is not installed. Run 'sudo apt-get install msr-tools' to install it." >&2 diff --git a/turbo-boost-startup b/turbo-boost-startup index 8f66bbf..93295f2 100644 --- a/turbo-boost-startup +++ b/turbo-boost-startup @@ -1,6 +1,6 @@ # This simply triggers the turbo-boost script at startup. # I use it as a startup script. -#!/bin/bash +#!/bin/sh ~/.local/bin/turbo-boost disable diff --git a/wifi-toggle b/wifi-toggle index d13cd20..c888ec3 100644 --- a/wifi-toggle +++ b/wifi-toggle @@ -1,7 +1,7 @@ # Toggles WiFi on a Linux system. Make sure that you have nmcli installed. # I use it with a shortcut. -#!/bin/bash +#!/bin/sh if [ $(nmcli r wifi | grep -c enabled) -eq 1 ]; then nmcli r wifi off