From acd922f5503cf0769588b4bfb9ab31fd27a64701 Mon Sep 17 00:00:00 2001 From: neingeist Date: Tue, 2 Sep 2025 13:09:31 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20use=20'env=20bash'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apt-dater-history-prune | 2 +- connections-without-ipv6-privacy | 2 +- crontab-suggest | 2 +- dbus-discover | 2 +- dnf-leaves-grepped | 2 +- gen-yum | 2 +- pdfjoin-aligned | 2 +- pdfnup-slides | 3 ++- randint | 2 +- 9 files changed, 10 insertions(+), 9 deletions(-) diff --git a/apt-dater-history-prune b/apt-dater-history-prune index fb11bfc..74ffeca 100755 --- a/apt-dater-history-prune +++ b/apt-dater-history-prune @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Prune old apt-dater history MTIME=+365 diff --git a/connections-without-ipv6-privacy b/connections-without-ipv6-privacy index f77393d..f8242ba 100755 --- a/connections-without-ipv6-privacy +++ b/connections-without-ipv6-privacy @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # list all redhat/networkmanager connections without ipv6 privacy set -e cd /etc/sysconfig/network-scripts diff --git a/crontab-suggest b/crontab-suggest index c45bf00..ca21666 100755 --- a/crontab-suggest +++ b/crontab-suggest @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # suggest a random time for a cronjob set -u diff --git a/dbus-discover b/dbus-discover index 7e19bb2..b75d15d 100755 --- a/dbus-discover +++ b/dbus-discover @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Discover DBUS session bus # Source: can't remember where this from... diff --git a/dnf-leaves-grepped b/dnf-leaves-grepped index e9de034..2ea2e83 100755 --- a/dnf-leaves-grepped +++ b/dnf-leaves-grepped @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Poor boy's debfoster for dnf OK_LEAVES=( diff --git a/gen-yum b/gen-yum index 233c858..2fecb36 100755 --- a/gen-yum +++ b/gen-yum @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Setup YUM/DNF repository GPG_KEY=F77BB18D diff --git a/pdfjoin-aligned b/pdfjoin-aligned index 752ca5d..f401074 100755 --- a/pdfjoin-aligned +++ b/pdfjoin-aligned @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # join pdfs and insert an empty (one-page) pdf for pdfs with an odd page number # create an empty (one-page) pdf diff --git a/pdfnup-slides b/pdfnup-slides index 9c5e076..61a86b9 100755 --- a/pdfnup-slides +++ b/pdfnup-slides @@ -1,4 +1,5 @@ -#!/bin/bash +#!/usr/bin/env bash +# make a printable pdf for powerpoint slides, 2 slides on each page file=$1 diff --git a/randint b/randint index ab95870..f6346ad 100755 --- a/randint +++ b/randint @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Give a random integer between 1 and $1 inclusive min=1