Fix shell

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
Marcus Noble 2022-04-15 08:21:10 +01:00
parent b07797b292
commit 14af02f424
Signed by: AverageMarcus
GPG Key ID: B8F2DB8A7AEBAF78
2 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@ FROM golang:1.13 AS UV3DP_BUILDER
go build -o /app/uv3dp ./cmd/uv3dp
FROM alpine:latest
FROM bash:5
COPY --from=UV3DP_BUILDER /app/uv3dp /usr/bin/
ADD src/convert.sh /convert.sh

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
cd ${WATCH_DIRECTORY:=/home}
@ -13,7 +13,7 @@ convert() {
export -f convert
while [ true ]; do
sleep 30
find . -type f -mmin +1 -iname '*.sl1' -exec bash -c 'convert {}' \;
sleep 30
done