From 9e51a89fb280e597fc3fe05b55ddbd047ef642b8 Mon Sep 17 00:00:00 2001 From: York-Simon Johannsen Date: Thu, 8 Jun 2023 12:59:00 +0200 Subject: [PATCH] Set stable shebang --- helpers/shells/createRepo.sh | 2 +- helpers/shells/deleteRepo.sh | 2 +- helpers/shells/getLastSave.sh | 2 +- helpers/shells/getStorageUsed.sh | 2 +- helpers/shells/recreateRepoConfigFile.sh | 2 +- helpers/shells/updateRepo.sh | 4 ++-- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/helpers/shells/createRepo.sh b/helpers/shells/createRepo.sh index 38822f3..f826035 100755 --- a/helpers/shells/createRepo.sh +++ b/helpers/shells/createRepo.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Shell created by Raven for BorgWarehouse. # This shell takes 3 arguments : [reponame] X [SSH pub key] X [quota] diff --git a/helpers/shells/deleteRepo.sh b/helpers/shells/deleteRepo.sh index 6d7752b..a13ba4e 100755 --- a/helpers/shells/deleteRepo.sh +++ b/helpers/shells/deleteRepo.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Shell created by Raven for BorgWarehouse. # This shell takes 1 arg : [user] with 8 char. length only. diff --git a/helpers/shells/getLastSave.sh b/helpers/shells/getLastSave.sh index a2c0f5a..cf3df82 100755 --- a/helpers/shells/getLastSave.sh +++ b/helpers/shells/getLastSave.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Shell created by Raven for BorgWarehouse. # Get the timestamp of the last modification of the file integrity.* for of all repositories in a JSON output. diff --git a/helpers/shells/getStorageUsed.sh b/helpers/shells/getStorageUsed.sh index 24d9a44..95d0bf7 100755 --- a/helpers/shells/getStorageUsed.sh +++ b/helpers/shells/getStorageUsed.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Shell created by Raven for BorgWarehouse. # Get the size of all repositories in a JSON output. diff --git a/helpers/shells/recreateRepoConfigFile.sh b/helpers/shells/recreateRepoConfigFile.sh index 530f3ef..65116ac 100644 --- a/helpers/shells/recreateRepoConfigFile.sh +++ b/helpers/shells/recreateRepoConfigFile.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ############################################################################################################## # What is this script ? diff --git a/helpers/shells/updateRepo.sh b/helpers/shells/updateRepo.sh index 0e57d34..d46f7d2 100755 --- a/helpers/shells/updateRepo.sh +++ b/helpers/shells/updateRepo.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Shell created by Raven for BorgWarehouse. # This shell takes 2 args : [user] [new SSH pub key] [quota] @@ -25,7 +25,7 @@ then exit 2 fi -# Check if username length is 8 char. With createRepo.sh our randoms have a length of 8 characters. +# Check if username length is 8 char. With createRepo.sh our randoms have a length of 8 characters. # If we receive another length there is necessarily a problem. username=$1 if [ ${#username} != 8 ]