Skip to content

Commit

Permalink
Revert "fix: do not source env variable"
Browse files Browse the repository at this point in the history
This reverts commit c44f440.
  • Loading branch information
stephdl committed Jun 20, 2024
1 parent c44f440 commit 4031f68
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions imapsync/usr/local/bin/syncctl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4031f68

Please sign in to comment.