Skip to content

Commit

Permalink
halt on installing 1password if signature verification fails, link -f…
Browse files Browse the repository at this point in the history
… snap neovim to usr/local/bin/nvim
  • Loading branch information
IbrahimTanyalcin committed Jul 26, 2024
1 parent f9d5521 commit abcf738
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
16 changes: 10 additions & 6 deletions install/desktop/optional/app-1password.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,16 @@ case "$ARCH" in
curl -sSO https://downloads.1password.com/linux/tar/stable/aarch64/1password-latest.tar.gz.sig
gpg --keyserver keyserver.ubuntu.com --recv-keys 3FEF9748469ADBE15DA7CA80AC2D62742012EA22
gpg --verify 1password-latest.tar.gz.sig 1password-latest.tar.gz
[ $? -eq 0 ] || { cd - && false; }
sudo tar -xf 1password-latest.tar.gz
sudo mkdir -p /opt/1Password
sudo mv 1password-*/* /opt/1Password
sudo /opt/1Password/after-install.sh
cd -
if [[ $? -eq 0 ]]; then
sudo tar -xf 1password-latest.tar.gz
sudo mkdir -p /opt/1Password
sudo mv 1password-*/* /opt/1Password
sudo /opt/1Password/after-install.sh
cd -
else
cd -
false
fi
;;
*)
# Install 1password and 1password-cli single script
Expand Down
4 changes: 3 additions & 1 deletion install/terminal/app-neovim.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ if [[ "${ARCH}" == "aarch64" ]]; then
sudo apt update
sudo apt install -y snapd
fi
sudo snap install --classic nvim && NEOVIM_SUCCESS=true
sudo snap install --classic nvim \
&& sudo ln -sf /snap/bin/nvim /usr/local/bin/nvim \
&& NEOVIM_SUCCESS=true
else
if wget -O nvim.tar.gz "https://github.com/neovim/neovim/releases/latest/download/nvim-linu${ARCH}.tar.gz"; then
tar -xf nvim.tar.gz
Expand Down

0 comments on commit abcf738

Please sign in to comment.