Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

#36 - problem trying to use with gdrive: resolves escaping issues #38

Merged
merged 2 commits into from
Nov 26, 2022

Conversation

blackandred
Copy link
Contributor

@blackandred blackandred commented Nov 26, 2022

This PR resolves an escaping issue.

Notice: Includes extra formatting changes

@blackandred blackandred linked an issue Nov 26, 2022 that may be closed by this pull request
@@ -46,7 +47,7 @@ func appendVar(args []string, prefix string, switchName string, envName string,
name := strings.ToLower(namePair[1])

args = append(args, switchName)
args = append(args, name+" = "+value)
args = append(args, name+"="+value)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having it as []string instead of concatenated string is a form of escaping, by the way.

@blackandred
Copy link
Contributor Author

Tested manually (we need more automatic tests coverage still), it seems it does not break anything, merging.

@blackandred blackandred merged commit c5f2627 into main Nov 26, 2022
@blackandred blackandred deleted the 36-problem-trying-to-use-with-gdrive branch November 26, 2022 14:20
@blackandred
Copy link
Contributor Author

Related issues in other OSS projects:
open-policy-agent/opa#2421
containers/podman#2582

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Problem trying to use with gdrive
1 participant