mirror of
https://github.com/rclone/rclone.git
synced 2025-08-17 09:01:33 +02:00
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:
committed by
Nick Craig-Wood
parent
4250dd98f3
commit
aed77a8fb2
@ -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
|
||||
|
Reference in New Issue
Block a user