Skip to main content
added 20 characters in body
Source Link
ctrl-alt-delor
  • 28.8k
  • 11
  • 67
  • 115

note that: (export a=b; command) is equivalent to a=b command. Note the brackets.

soThen if we apply the variable not to sudo but direct to sbopkg, so instead of FFMPEG=yes sudo sbopkg -B -i vice we can do sudo FFMPEG=yes sbopkg -B -i vice

If a security police prevent this, then: sudo bash -c "FFMPEG=yes sbopkg -B -i vice"

(Don't use -E, it us insecure as it will leak all sorts of unexpected variables.)

note that: (export a=b; command) is equivalent to a=b command

so instead of FFMPEG=yes sudo sbopkg -B -i vice we can do sudo FFMPEG=yes sbopkg -B -i vice

If a security police prevent this, then: sudo bash -c "FFMPEG=yes sbopkg -B -i vice"

(Don't use -E, it us insecure as it will leak all sorts of unexpected variables.)

note that: (export a=b; command) is equivalent to a=b command. Note the brackets.

Then if we apply the variable not to sudo but direct to sbopkg, so instead of FFMPEG=yes sudo sbopkg -B -i vice we can do sudo FFMPEG=yes sbopkg -B -i vice

If a security police prevent this, then: sudo bash -c "FFMPEG=yes sbopkg -B -i vice"

(Don't use -E, it us insecure as it will leak all sorts of unexpected variables.)

Source Link
ctrl-alt-delor
  • 28.8k
  • 11
  • 67
  • 115

note that: (export a=b; command) is equivalent to a=b command

so instead of FFMPEG=yes sudo sbopkg -B -i vice we can do sudo FFMPEG=yes sbopkg -B -i vice

If a security police prevent this, then: sudo bash -c "FFMPEG=yes sbopkg -B -i vice"

(Don't use -E, it us insecure as it will leak all sorts of unexpected variables.)