Skip to content

Instantly share code, notes, and snippets.

@stephaneerard
Created April 12, 2021 20:18
Show Gist options
  • Save stephaneerard/c25d01fccbcaef6e8140871f1a97ed3b to your computer and use it in GitHub Desktop.
Save stephaneerard/c25d01fccbcaef6e8140871f1a97ed3b to your computer and use it in GitHub Desktop.
PS C:\code\frenchex2\cli.ts_i1\tmp> frenchex2 vagrant:machine-type:provision:add `
>> --os-type "Debian_64" `
>> --os-version "10.9.0" `
>> --name "apt.configure" `
>> --type "dev" `
>> --code-bash `
>> @'
>> apt_conf=$(cat <<EOF
>> APT::Get::Install-Recommends " false";
>> APT::Get::Install-Suggests "false";
>> EOF
>> )
>> echo "$apt_conf" | sudo tee /etc/apt/apt.conf.d/00no_recommends_no_suggest
>> '@
How do I escape <<EOF EOF) content so that is is assigned to --code-bash getopt.
Thanks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment