From 53f5643994fb606929d7209788d2364758536cf2 Mon Sep 17 00:00:00 2001 From: Lucas Eduardo Date: Thu, 17 Aug 2023 00:50:01 -0300 Subject: [PATCH] fix: shebangs (#3643) Signed-off-by: lucasew --- mobile/ios/ci_scripts/ci_post_clone.sh | 2 +- nginx/10-listen-on-ipv6-by-default.sh | 2 +- nginx/15-set-env-variables.envsh | 2 +- server/bin/build-imagemagick.sh | 2 +- server/bin/build-libraw.sh | 2 +- server/bin/build-libvips.sh | 2 +- server/bin/cli.sh | 1 + server/bin/install-ffmpeg.sh | 2 +- server/start-microservices.sh | 2 +- server/start-server.sh | 2 +- server/start.sh | 2 +- 11 files changed, 11 insertions(+), 10 deletions(-) diff --git a/mobile/ios/ci_scripts/ci_post_clone.sh b/mobile/ios/ci_scripts/ci_post_clone.sh index 1a4f0cd16..ea244484b 100755 --- a/mobile/ios/ci_scripts/ci_post_clone.sh +++ b/mobile/ios/ci_scripts/ci_post_clone.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # The default execution directory of this script is the ci_scripts directory. cd $CI_WORKSPACE/mobile diff --git a/nginx/10-listen-on-ipv6-by-default.sh b/nginx/10-listen-on-ipv6-by-default.sh index f836aadd0..e4d85c7cf 100755 --- a/nginx/10-listen-on-ipv6-by-default.sh +++ b/nginx/10-listen-on-ipv6-by-default.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # vim:sw=4:ts=4:et set -e diff --git a/nginx/15-set-env-variables.envsh b/nginx/15-set-env-variables.envsh index 664de1a20..5d4acb1ba 100755 --- a/nginx/15-set-env-variables.envsh +++ b/nginx/15-set-env-variables.envsh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh set -e export IMMICH_WEB_URL="${IMMICH_WEB_URL:-http://immich-web:3000}" diff --git a/server/bin/build-imagemagick.sh b/server/bin/build-imagemagick.sh index 01225eb46..fea655ac4 100755 --- a/server/bin/build-imagemagick.sh +++ b/server/bin/build-imagemagick.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/server/bin/build-libraw.sh b/server/bin/build-libraw.sh index 510753fae..50bc049ea 100755 --- a/server/bin/build-libraw.sh +++ b/server/bin/build-libraw.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/server/bin/build-libvips.sh b/server/bin/build-libvips.sh index bed60e415..2c5bc55ba 100755 --- a/server/bin/build-libvips.sh +++ b/server/bin/build-libvips.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/server/bin/cli.sh b/server/bin/cli.sh index 9f3783805..148954d9a 100755 --- a/server/bin/cli.sh +++ b/server/bin/cli.sh @@ -1 +1,2 @@ +#!/usr/bin/env bash node ./node_modules/immich/bin/index "$@" diff --git a/server/bin/install-ffmpeg.sh b/server/bin/install-ffmpeg.sh index 8e60b3b70..46b9e51ef 100755 --- a/server/bin/install-ffmpeg.sh +++ b/server/bin/install-ffmpeg.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/server/start-microservices.sh b/server/start-microservices.sh index f81e6381a..efdafaac0 100755 --- a/server/start-microservices.sh +++ b/server/start-microservices.sh @@ -1,2 +1,2 @@ -#!/bin/sh +#!/usr/bin/env sh ./start.sh microservices diff --git a/server/start-server.sh b/server/start-server.sh index c3262af83..acbbb82b9 100755 --- a/server/start-server.sh +++ b/server/start-server.sh @@ -1,2 +1,2 @@ -#!/bin/sh +#!/usr/bin/env sh ./start.sh immich diff --git a/server/start.sh b/server/start.sh index 253dfc56d..10b473d9a 100755 --- a/server/start.sh +++ b/server/start.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh export LD_PRELOAD=/usr/lib/$(arch)-linux-gnu/libmimalloc.so.2