1
mirror of https://github.com/rclone/rclone synced 2024-11-21 22:50:16 +01: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:
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

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# This adds the version each backend was released to its docs page # This adds the version each backend was released to its docs page
set -e set -e
for backend in $( find backend -maxdepth 1 -type d ); do for backend in $( find backend -maxdepth 1 -type d ); do

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# An example script to run when bisecting go with git bisect -run when # An example script to run when bisecting go with git bisect -run when
# looking for an rclone regression # looking for an rclone regression

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Example script for git bisect run # Example script for git bisect run
# #

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e
docker build -t rclone/xgo-cgofuse https://github.com/winfsp/cgofuse.git docker build -t rclone/xgo-cgofuse https://github.com/winfsp/cgofuse.git
docker images docker images

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Insert the rc docs into docs/content/rc.md # Insert the rc docs into docs/content/rc.md
set -e set -e

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Thrash the VFS tests # Thrash the VFS tests
set -e set -e

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# defaults # defaults
buildflags="" buildflags=""

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
if [[ ! -z $(git status --short --untracked-files=no) ]]; then if [[ ! -z $(git status --short --untracked-files=no) ]]; then
echo "Detected uncommitted changes - commit before running this" echo "Detected uncommitted changes - commit before running this"

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# #
# Test all the remotes against restic integration test # Test all the remotes against restic integration test
# Run with: screen -S restic-test -L ./restic-test.sh # Run with: screen -S restic-test -L ./restic-test.sh

View File

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

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
KERBEROS=${KERBEROS-"false"} KERBEROS=${KERBEROS-"false"}

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
stop() { stop() {
if status ; then if status ; then

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# start an "rclone serve" server # start an "rclone serve" server

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
case "$1" in case "$1" in
start) start)