Advertisement
Guest User

raspberrypi-sys-mods postinst

a guest
Feb 3rd, 2021
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.02 KB | None | 0 0
  1.  58 XdNgj4Jd2/g6T9InmWT0hASljur+dJnzNiNCkbn9KbX7J/qK1IbR8y560yRmFsU+
  2.  59 NdCFTW7wY0Fb1fWJ+/KTsC4=
  3.  60 =J6gs
  4.  61 -----END PGP PUBLIC KEY BLOCK-----
  5.  62 " | gpg --dearmor > microsoft.gpg
  6. 63                 mv microsoft.gpg "$CODE_TRUSTED_PART"
  7. 64         fi
  8. 65
  9. 66         # Install repository source list
  10. 67         WRITE_SOURCE=0
  11. 68         if [ ! -f "$CODE_SOURCE_PART" ]; then
  12. 69                 # Write source list if it does not exist
  13. 70                 WRITE_SOURCE=1
  14. 71         elif grep -q "# disabled on upgrade to" /etc/apt/sources.list.d/vscode.list; then
  15.  72                 # Write source list if it was disabled by OS upgrade
  16.  73                 WRITE_SOURCE=1
  17.  74         fi
  18.  75         if [ "$WRITE_SOURCE" -eq "1" ]; then
  19.  76                 echo "### THIS FILE IS AUTOMATICALLY CONFIGURED ###
  20. 77 # You may comment out this entry, but any other modifications may be lost.
  21. 78 deb [arch=amd64,arm64,armhf] http://packages.microsoft.com/repos/code stable main" > "$CODE_SOURCE_PART"
  22.  79         fi
  23.  80 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement