-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·35 lines (27 loc) · 1.01 KB
/
install.sh
File metadata and controls
executable file
·35 lines (27 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
# Install script for pass.app
# This script will install the pass application to your Applications folder
echo "Installing pass..."
# Get the directory where this script is located
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# Make the main executable script executable
chmod +x "$SCRIPT_DIR/pass.app/Contents/MacOS/pass"
# Copy the application to Applications folder
cp -R "$SCRIPT_DIR/pass.app" "/Applications/"
# Make sure the copied application is executable
chmod +x "/Applications/pass.app/Contents/MacOS/pass"
echo "pass has been installed to /Applications/"
echo ""
echo "You can now:"
echo "1. Open Spotlight (Cmd+Space) and type 'pass'"
echo "2. Or find it in your Applications folder"
echo ""
echo "Note: Make sure you have 'pass' installed via: brew install pass"
echo ""
# Check if pass is installed
if command -v pass &> /dev/null; then
echo "✓ 'pass' command is available"
else
echo "✗ 'pass' command not found. Please install it first:"
echo " brew install pass"
fi