From 4031f6806ef47e34c5691b83ca07221a3fef64c4 Mon Sep 17 00:00:00 2001 From: Stephane de Labrusse Date: Thu, 20 Jun 2024 16:06:59 +0200 Subject: [PATCH] Revert "fix: do not source env variable" This reverts commit c44f44052df7865347ec7fc04b65e223df610ae0. --- imapsync/usr/local/bin/syncctl | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/imapsync/usr/local/bin/syncctl b/imapsync/usr/local/bin/syncctl index 666b76f..e40ed93 100755 --- a/imapsync/usr/local/bin/syncctl +++ b/imapsync/usr/local/bin/syncctl @@ -22,14 +22,7 @@ fi action=${1} task_id=${2} -while IFS= read -r line; do - # Trim leading/trailing whitespace - line=$(echo "$line" | xargs) - # Ignore empty lines - [ -z "$line" ] && continue - # Export the variable - export "$line" -done < /etc/imapsync/${task_id}.env +source /etc/imapsync/${task_id}.env if [[ "$action" == "start" ]]; then