Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
1936e54b5f |
@@ -117,9 +117,8 @@ curl -X POST "https://api.pushover.net/1/messages.json" \
|
|||||||
|
|
||||||
The script automatically tries multiple installation methods in order:
|
The script automatically tries multiple installation methods in order:
|
||||||
|
|
||||||
1. **Snap Package** (if snapd is available)
|
1. **NPM Global Package** (if npm is available)
|
||||||
2. **NPM Global Package** (if npm is available)
|
2. **Direct Binary Download** (fallback method)
|
||||||
3. **Direct Binary Download** (fallback method)
|
|
||||||
|
|
||||||
## Error Codes
|
## Error Codes
|
||||||
|
|
||||||
|
@@ -44,14 +44,6 @@ install_bitwarden_cli() {
|
|||||||
|
|
||||||
info "Installing Bitwarden CLI..."
|
info "Installing Bitwarden CLI..."
|
||||||
|
|
||||||
if command -v snap &>/dev/null; then
|
|
||||||
info "Installing via snap..."
|
|
||||||
if sudo snap install bw; then
|
|
||||||
info "Bitwarden CLI installed successfully via snap"
|
|
||||||
return 0
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
if command -v npm &>/dev/null; then
|
if command -v npm &>/dev/null; then
|
||||||
info "Installing via npm..."
|
info "Installing via npm..."
|
||||||
if sudo npm install -g @bitwarden/cli; then
|
if sudo npm install -g @bitwarden/cli; then
|
||||||
|
Reference in New Issue
Block a user