Skip to content

Commit

Permalink
fix: do not source env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
stephdl committed Jun 20, 2024
1 parent aa7e17b commit c44f440
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion imapsync/usr/local/bin/syncctl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,14 @@ fi
action=${1}
task_id=${2}

source /etc/imapsync/${task_id}.env
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


if [[ "$action" == "start" ]]; then
Expand Down

0 comments on commit c44f440

Please sign in to comment.