From d23a13bb93cec75258deebf3e044bea785e33ae3 Mon Sep 17 00:00:00 2001 From: neingeist Date: Tue, 26 Aug 2025 23:55:54 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20use=20'env=20python3'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- b64-image | 2 +- check-java-versions | 2 +- chop-edges | 2 +- docker-check-updates | 2 +- fetchmail-errors | 2 +- larger-than | 2 +- libvirt-check-trim | 2 +- libvirt-restart-running | 2 +- ssh_known_dupes | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/b64-image b/b64-image index 4dd82e0..0ddb70a 100755 --- a/b64-image +++ b/b64-image @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 # Convert an image to CSS/HTML base64 foo from __future__ import division, print_function diff --git a/check-java-versions b/check-java-versions index 1697a65..7d148ae 100755 --- a/check-java-versions +++ b/check-java-versions @@ -1,4 +1,4 @@ -#!/usr/bin/python2 +#!/usr/bin/env python3 # Check Java versions against the newest one installed # # This assumes that there's OpenJDK installed and kept up to date. diff --git a/chop-edges b/chop-edges index eb21575..7f418ac 100755 --- a/chop-edges +++ b/chop-edges @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import click import subprocess from pathlib import Path diff --git a/docker-check-updates b/docker-check-updates index ee5fa75..757e0a3 100755 --- a/docker-check-updates +++ b/docker-check-updates @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 """Check Docker images for security/distro updates. Assumes DNF.""" from __future__ import division, print_function diff --git a/fetchmail-errors b/fetchmail-errors index 33d6d72..832262d 100755 --- a/fetchmail-errors +++ b/fetchmail-errors @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 """Print fetchmail errors in journal since yesterday, if more than MINCOUNT""" import datetime diff --git a/larger-than b/larger-than index 808c05d..d374952 100755 --- a/larger-than +++ b/larger-than @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import os import subprocess import sys diff --git a/libvirt-check-trim b/libvirt-check-trim index 3dcbe43..47e5059 100755 --- a/libvirt-check-trim +++ b/libvirt-check-trim @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 # Check if all libvirt domains are prepared for TRIM/fstrim # (for use on qcow2 images or thin provisioned volumes) diff --git a/libvirt-restart-running b/libvirt-restart-running index 7a8b91b..9fd9699 100755 --- a/libvirt-restart-running +++ b/libvirt-restart-running @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 # Restart all running libvirt domains import libvirt diff --git a/ssh_known_dupes b/ssh_known_dupes index 5e2b905..6f5d077 100755 --- a/ssh_known_dupes +++ b/ssh_known_dupes @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 # Find duplicate keys in ~/.ssh/known_hosts # # Of course, we should have been more careful in the first place :)