@@ -19,7 +19,7 @@ if [ "$(uname)" = "Darwin" ]; then
19
19
echo " pepe installed successfully using Homebrew!"
20
20
else
21
21
echo " Homebrew not found, downloading pepe for macOS..."
22
- curl -L -o pepe " https://pepe.mhaimdat.com/0.2.1 /$( uname -m) -apple-darwin/pepe"
22
+ curl -L -o pepe " https://pepe.mhaimdat.com/0.2.2 /$( uname -m) -apple-darwin/pepe"
23
23
chmod +x pepe
24
24
mv pepe /usr/local/bin/
25
25
echo " pepe for macOS downloaded and installed successfully!"
@@ -53,8 +53,8 @@ elif [ "$(uname -s)" = "Linux" ]; then
53
53
cd " $TEMP_DIR "
54
54
55
55
echo " Downloading binary..."
56
- curl -L -O " https://pepe.mhaimdat.com/0.2.1 /x86_64-unknown-linux-gnu/pepe"
57
- curl -L -O " https://pepe.mhaimdat.com/0.2.1 /x86_64-unknown-linux-gnu/pepe.sha256"
56
+ curl -L -O " https://pepe.mhaimdat.com/0.2.2 /x86_64-unknown-linux-gnu/pepe"
57
+ curl -L -O " https://pepe.mhaimdat.com/0.2.2 /x86_64-unknown-linux-gnu/pepe.sha256"
58
58
59
59
echo " Verifying binary integrity..."
60
60
EXPECTED_CHECKSUM=$( cat pepe.sha256)
@@ -81,7 +81,12 @@ elif [ "$(uname -s)" = "Linux" ]; then
81
81
if [ ! -f " $PROFILE_FILE " ] || ! grep -q " $USER_BIN_DIR " " $PROFILE_FILE " ; then
82
82
echo " export PATH=\" $USER_BIN_DIR :$PATH \" " >> " $PROFILE_FILE "
83
83
echo " Added $USER_BIN_DIR to your PATH in $PROFILE_FILE "
84
- echo " Please run 'source $PROFILE_FILE ' to update your PATH"
84
+ if has_sudo; then
85
+ source $PROFILE_FILE
86
+ else
87
+ echo -e " \033[1;33m⚠️ Please run this command to update your PATH:\033[0m"
88
+ echo -e " \033[1;32msource $PROFILE_FILE \033[0m"
89
+ fi
85
90
fi
86
91
87
92
# Install the binary
0 commit comments