How to circumvent “apt-key output should not be parsed”?

后端 未结 3 1365
野性不改
野性不改 2020-12-14 14:20

I\'m automating my Docker installation. Something like this:

if apt-key fingerprint 0EBFCD88 | grep \"Key fingerprint = 9DC8 5822 9FC7 DD38 854A E2D8 8D81 80         


        
3条回答
  •  一整个雨季
    2020-12-14 14:45

    From apt-key sources, you can set APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE to a non-empty value to disable this warning.

    You can also use "grep -q" so you don't need to redirect stdout in /dev/null either.

提交回复
热议问题