From f322570c90711fd26fda4962fa6e21b74ef42772 Mon Sep 17 00:00:00 2001 From: simono41 Date: Mon, 7 Jan 2019 20:23:02 +0100 Subject: [PATCH] optimierungen --- android-app-installer.sh | 2 +- arpspoof.sh | 2 +- asciiConvert.sh | 2 +- asciiConvert1.sh | 2 +- audible_convert_to_audio.sh | 2 +- audible_convert_to_audio_windows.sh | 2 +- audible_convert_to_ogg.sh | 2 +- beautysh-install.sh | 2 +- compress.sh | 2 +- convert_onefile.sh | 2 +- convert_onefile_mp3.sh | 2 +- convert_onefile_mp3_copy.sh | 2 +- convert_onefile_mp3_copy_cut.sh | 2 +- convert_onefile_ogg.sh | 2 +- convert_onefile_ogg_copy_cut.sh | 2 +- convert_onefile_ogg_cut.sh | 2 +- convert_to_audio-android.sh | 2 +- convert_to_audio.sh | 2 +- convert_to_flac_flac.sh | 2 +- convert_to_gif.sh | 2 +- convert_to_m4a.sh | 2 +- convert_to_mp3.sh | 2 +- convert_to_mp4.sh | 2 +- convert_to_ogg-android.sh | 2 +- convert_to_ogg.sh | 2 +- convert_to_ogg_oggenc.sh | 2 +- convert_to_opus.sh | 2 +- convert_to_opus_opusenc.sh | 2 +- convert_to_png.sh | 2 +- convert_to_webm.sh | 2 +- convert_to_webm9.sh | 2 +- cp_onefile.sh | 2 +- cutname.sh | 2 +- install-firacode.sh | 2 +- link.sh | 2 +- mv_dir.sh | 2 +- newstarter.sh | 2 +- openvpn-install.sh | 2 +- openvpn.sh | 2 +- replaceSpace.sh | 2 +- shellinabox_sshwrapper.sh | 2 +- shellscripte.sh | 2 +- sort.sh | 2 +- start_shellinabox.sh | 2 +- systemctl-test.sh | 2 +- ts3_install-script.sh | 2 +- uefi-boot.sh | 2 +- windoof_write.sh | 2 +- youtube-dl-android.sh | 2 +- youtube-dl.sh | 2 +- youtube-pi.sh | 2 +- youtube.sh | 2 +- 52 files changed, 52 insertions(+), 52 deletions(-) diff --git a/android-app-installer.sh b/android-app-installer.sh index 189e75a..2df200b 100755 --- a/android-app-installer.sh +++ b/android-app-installer.sh @@ -1,4 +1,4 @@ -#!/system/xbin/bash +#!/usr/bin/env bash set -x diff --git a/arpspoof.sh b/arpspoof.sh index 52834d4..f3b7645 100755 --- a/arpspoof.sh +++ b/arpspoof.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -ex diff --git a/asciiConvert.sh b/asciiConvert.sh index ecb6508..7560f7c 100755 --- a/asciiConvert.sh +++ b/asciiConvert.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/asciiConvert1.sh b/asciiConvert1.sh index 67bd794..b658620 100755 --- a/asciiConvert1.sh +++ b/asciiConvert1.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash : ${1?"Aufruf: $0 "} while read line; do diff --git a/audible_convert_to_audio.sh b/audible_convert_to_audio.sh index d1f4ca3..dae4ce9 100755 --- a/audible_convert_to_audio.sh +++ b/audible_convert_to_audio.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash read -p "Wie heißen die activation_bytes? : " code diff --git a/audible_convert_to_audio_windows.sh b/audible_convert_to_audio_windows.sh index c79874c..b76981d 100755 --- a/audible_convert_to_audio_windows.sh +++ b/audible_convert_to_audio_windows.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash read -p "Wie heißen die activation_bytes? : " code diff --git a/audible_convert_to_ogg.sh b/audible_convert_to_ogg.sh index 1eee971..ba5cd6c 100755 --- a/audible_convert_to_ogg.sh +++ b/audible_convert_to_ogg.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash code="$1" shift diff --git a/beautysh-install.sh b/beautysh-install.sh index d789f62..3e2ea4f 100755 --- a/beautysh-install.sh +++ b/beautysh-install.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -ex diff --git a/compress.sh b/compress.sh index 151e379..49350aa 100755 --- a/compress.sh +++ b/compress.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -ex diff --git a/convert_onefile.sh b/convert_onefile.sh index cdb7931..1d90c21 100755 --- a/convert_onefile.sh +++ b/convert_onefile.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -ex diff --git a/convert_onefile_mp3.sh b/convert_onefile_mp3.sh index bbc74d4..8ded843 100755 --- a/convert_onefile_mp3.sh +++ b/convert_onefile_mp3.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -ex diff --git a/convert_onefile_mp3_copy.sh b/convert_onefile_mp3_copy.sh index 843207b..16aae6b 100755 --- a/convert_onefile_mp3_copy.sh +++ b/convert_onefile_mp3_copy.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -ex diff --git a/convert_onefile_mp3_copy_cut.sh b/convert_onefile_mp3_copy_cut.sh index bbabb57..5955fc2 100755 --- a/convert_onefile_mp3_copy_cut.sh +++ b/convert_onefile_mp3_copy_cut.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -ex diff --git a/convert_onefile_ogg.sh b/convert_onefile_ogg.sh index cdb7931..1d90c21 100755 --- a/convert_onefile_ogg.sh +++ b/convert_onefile_ogg.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -ex diff --git a/convert_onefile_ogg_copy_cut.sh b/convert_onefile_ogg_copy_cut.sh index d27dc2b..6635424 100755 --- a/convert_onefile_ogg_copy_cut.sh +++ b/convert_onefile_ogg_copy_cut.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -ex diff --git a/convert_onefile_ogg_cut.sh b/convert_onefile_ogg_cut.sh index 0ab4d72..ef1664d 100755 --- a/convert_onefile_ogg_cut.sh +++ b/convert_onefile_ogg_cut.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -ex diff --git a/convert_to_audio-android.sh b/convert_to_audio-android.sh index 7f86a62..fa85424 100755 --- a/convert_to_audio-android.sh +++ b/convert_to_audio-android.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash while (( "$#" )) do diff --git a/convert_to_audio.sh b/convert_to_audio.sh index dd377bb..52d4aeb 100755 --- a/convert_to_audio.sh +++ b/convert_to_audio.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash while (( "$#" )) do diff --git a/convert_to_flac_flac.sh b/convert_to_flac_flac.sh index b72bb19..5e9588c 100755 --- a/convert_to_flac_flac.sh +++ b/convert_to_flac_flac.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash while (( "$#" )) do diff --git a/convert_to_gif.sh b/convert_to_gif.sh index a83930f..2c4df1c 100755 --- a/convert_to_gif.sh +++ b/convert_to_gif.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -ex diff --git a/convert_to_m4a.sh b/convert_to_m4a.sh index 5f47bd1..ce20ee7 100755 --- a/convert_to_m4a.sh +++ b/convert_to_m4a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash while (( "$#" )) do diff --git a/convert_to_mp3.sh b/convert_to_mp3.sh index 724d511..62aaf2c 100755 --- a/convert_to_mp3.sh +++ b/convert_to_mp3.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash while (( "$#" )) do diff --git a/convert_to_mp4.sh b/convert_to_mp4.sh index 3b51b89..a370389 100755 --- a/convert_to_mp4.sh +++ b/convert_to_mp4.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash while (( "$#" )) do diff --git a/convert_to_ogg-android.sh b/convert_to_ogg-android.sh index e9f9c28..a407066 100755 --- a/convert_to_ogg-android.sh +++ b/convert_to_ogg-android.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash while (( "$#" )) do diff --git a/convert_to_ogg.sh b/convert_to_ogg.sh index ff9ecba..4c3eb9e 100755 --- a/convert_to_ogg.sh +++ b/convert_to_ogg.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash while (( "$#" )) do diff --git a/convert_to_ogg_oggenc.sh b/convert_to_ogg_oggenc.sh index 44d37c8..dc4558f 100755 --- a/convert_to_ogg_oggenc.sh +++ b/convert_to_ogg_oggenc.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash while (( "$#" )) do diff --git a/convert_to_opus.sh b/convert_to_opus.sh index 76a3ea6..fd52d2d 100755 --- a/convert_to_opus.sh +++ b/convert_to_opus.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash while (( "$#" )) do diff --git a/convert_to_opus_opusenc.sh b/convert_to_opus_opusenc.sh index b6c740c..401daec 100755 --- a/convert_to_opus_opusenc.sh +++ b/convert_to_opus_opusenc.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash while (( "$#" )) do diff --git a/convert_to_png.sh b/convert_to_png.sh index b6ceaf5..a6b3b88 100755 --- a/convert_to_png.sh +++ b/convert_to_png.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -ex diff --git a/convert_to_webm.sh b/convert_to_webm.sh index 1fcacb9..cbc95e0 100755 --- a/convert_to_webm.sh +++ b/convert_to_webm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash while (( "$#" )) do diff --git a/convert_to_webm9.sh b/convert_to_webm9.sh index a07cae6..8010e61 100755 --- a/convert_to_webm9.sh +++ b/convert_to_webm9.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash while (( "$#" )) do diff --git a/cp_onefile.sh b/cp_onefile.sh index 8b39571..7f64a7b 100755 --- a/cp_onefile.sh +++ b/cp_onefile.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash finds=$(find -name $1) diff --git a/cutname.sh b/cutname.sh index 02ce171..5340105 100755 --- a/cutname.sh +++ b/cutname.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -x diff --git a/install-firacode.sh b/install-firacode.sh index 651644e..1d6e0f6 100755 --- a/install-firacode.sh +++ b/install-firacode.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # set -ex diff --git a/link.sh b/link.sh index 250f3ea..285c48c 100755 --- a/link.sh +++ b/link.sh @@ -1,4 +1,4 @@ -#!/system/xbin/bash +#!/usr/bin/env bash BEFEHL=$1 diff --git a/mv_dir.sh b/mv_dir.sh index f60c4d1..ccc7879 100755 --- a/mv_dir.sh +++ b/mv_dir.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash stichwort="$1" diff --git a/newstarter.sh b/newstarter.sh index cf87b78..40e58d3 100755 --- a/newstarter.sh +++ b/newstarter.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash numscreens=3 count=0 if [ -z $1 ] ; then diff --git a/openvpn-install.sh b/openvpn-install.sh index 3f06b67..bc1f292 100755 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Secure OpenVPN server installer for Debian, Ubuntu, CentOS and Arch Linux # https://github.com/Angristan/OpenVPN-install diff --git a/openvpn.sh b/openvpn.sh index b376aa9..860beda 100755 --- a/openvpn.sh +++ b/openvpn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -ex diff --git a/replaceSpace.sh b/replaceSpace.sh index 7d26c79..f33ef07 100755 --- a/replaceSpace.sh +++ b/replaceSpace.sh @@ -1,4 +1,4 @@ -#! /bin/sh +#!/usr/bin/env bash # Name: replaceSpace # Ersetzt Leerzeichen in Datei- bzw. Verzeichnisnamen durch '_' space=' ' diff --git a/shellinabox_sshwrapper.sh b/shellinabox_sshwrapper.sh index 7a7e990..b032c36 100755 --- a/shellinabox_sshwrapper.sh +++ b/shellinabox_sshwrapper.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # read -p "SSH remote host (hostname or ip address): " host; # diff --git a/shellscripte.sh b/shellscripte.sh index 5f36f77..1b7ba08 100755 --- a/shellscripte.sh +++ b/shellscripte.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -xe diff --git a/sort.sh b/sort.sh index 9490992..9922522 100755 --- a/sort.sh +++ b/sort.sh @@ -1,2 +1,2 @@ -#!/bin/sh +#!/usr/bin/env bash for i in $(cat $1) ; do echo $i ; done | sort | uniq diff --git a/start_shellinabox.sh b/start_shellinabox.sh index d49cb30..8574acc 100755 --- a/start_shellinabox.sh +++ b/start_shellinabox.sh @@ -1,2 +1,2 @@ -#!/bin/sh +#!/usr/bin/env bash /usr/local/bin/shellinaboxd --background --service=/:webssh:webssh:HOME:'/home/webssh/shellinabox_sshwrapper.sh' diff --git a/systemctl-test.sh b/systemctl-test.sh index cde7a3b..229482d 100755 --- a/systemctl-test.sh +++ b/systemctl-test.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -ex diff --git a/ts3_install-script.sh b/ts3_install-script.sh index 1e494b7..ad2b8d4 100755 --- a/ts3_install-script.sh +++ b/ts3_install-script.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -ex diff --git a/uefi-boot.sh b/uefi-boot.sh index 5f9631d..2f393cd 100755 --- a/uefi-boot.sh +++ b/uefi-boot.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # set -ex diff --git a/windoof_write.sh b/windoof_write.sh index 43d4191..5f0cf17 100755 --- a/windoof_write.sh +++ b/windoof_write.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -x diff --git a/youtube-dl-android.sh b/youtube-dl-android.sh index f7b0502..8f6c09a 100755 --- a/youtube-dl-android.sh +++ b/youtube-dl-android.sh @@ -1,4 +1,4 @@ -#!/system/xbin/bash +#!/usr/bin/env bash set -ex diff --git a/youtube-dl.sh b/youtube-dl.sh index 1fba2d4..bfe4509 100755 --- a/youtube-dl.sh +++ b/youtube-dl.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -ex diff --git a/youtube-pi.sh b/youtube-pi.sh index baa0798..4c7213c 100755 --- a/youtube-pi.sh +++ b/youtube-pi.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -ex diff --git a/youtube.sh b/youtube.sh index 85e53c4..eedf55c 100755 --- a/youtube.sh +++ b/youtube.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -ex