tree-wide: replace /bin/bash with /usr/bin/env bash

The latter is more portable, while the former only works on systems
where /bin/bash exists (or is symlinked appropriately).
This commit is contained in:
Florian Klink
2024-05-24 12:01:58 +02:00
committed by Nick Craig-Wood
parent 4250dd98f3
commit aed77a8fb2
36 changed files with 36 additions and 36 deletions

View File

@ -330,7 +330,7 @@ then auto-mounting.
Content of /etc/rclone/scripts/rclone_nanny_script.sh
```shell
#!/bin/bash
#!/usr/bin/env bash
erroneous_list=$(df 2>&1 | grep -i 'Transport endpoint is not connected' | awk '{print ""$2"" }' | tr -d \:)
rclone_list=$(findmnt -t fuse.rclone -n 2>&1 | awk '{print ""$1"" }' | tr -d \:)
IFS=$'\n'; set -f