mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Fixes minor linting
This commit is contained in:
		| @@ -95,7 +95,7 @@ initialize() { | ||||
| 	done | ||||
| 	set -e | ||||
|  | ||||
| 	${gosu_cmd[@]} /sbin/docker-prepare.sh | ||||
| 	"${gosu_cmd[@]}" /sbin/docker-prepare.sh | ||||
| } | ||||
|  | ||||
| install_languages() { | ||||
| @@ -138,7 +138,7 @@ install_languages() { | ||||
| echo "Paperless-ngx docker container starting..." | ||||
|  | ||||
| gosu_cmd=(gosu paperless) | ||||
| if [ $(id -u) == $(id -u paperless) ]; then | ||||
| if [ "$(id -u)" == "$(id -u paperless)" ]; then | ||||
| 	gosu_cmd=() | ||||
| fi | ||||
|  | ||||
| @@ -151,7 +151,7 @@ initialize | ||||
|  | ||||
| if [[ "$1" != "/"* ]]; then | ||||
| 	echo Executing management command "$@" | ||||
| 	exec ${gosu_cmd[@]} python3 manage.py "$@" | ||||
| 	exec "${gosu_cmd[@]}" python3 manage.py "$@" | ||||
| else | ||||
| 	echo Executing "$@" | ||||
| 	exec "$@" | ||||
|   | ||||
| @@ -1,7 +1,7 @@ | ||||
| #!/usr/bin/env bash | ||||
|  | ||||
| rootless_args=() | ||||
| if [ $(id -u) == $(id -u paperless) ]; then | ||||
| if [ "$(id -u)" == "$(id -u paperless)" ]; then | ||||
| 	rootless_args=( | ||||
| 		--user | ||||
| 		paperless | ||||
| @@ -12,4 +12,4 @@ if [ $(id -u) == $(id -u paperless) ]; then | ||||
| 	) | ||||
| fi | ||||
|  | ||||
| /usr/local/bin/supervisord -c /etc/supervisord.conf ${rootless_args[@]} | ||||
| /usr/local/bin/supervisord -c /etc/supervisord.conf "${rootless_args[@]}" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Trenton Holmes
					Trenton Holmes