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 1a4f0cd169960..ea244484bbbe3 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 f836aadd0ee1b..e4d85c7cfa81d 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 664de1a20455b..5d4acb1ba7f3c 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 01225eb46a0fb..fea655ac49391 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 510753faed825..50bc049ea13d8 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 bed60e415eade..2c5bc55baae34 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 9f3783805e891..148954d9ac7bf 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 8e60b3b70f515..46b9e51ef8ff5 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 f81e6381aa977..efdafaac020d8 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 c3262af83ca78..acbbb82b99ca4 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 253dfc56db4d8..10b473d9aa428 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