satoridb 1.1.23 → 1.1.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/add-to-path.sh +8 -8
- package/package.json +1 -1
package/add-to-path.sh
CHANGED
|
@@ -7,15 +7,15 @@ EXPORT_LINE='export PATH="$HOME/.satori/bin:$PATH"'
|
|
|
7
7
|
|
|
8
8
|
# Check if directory exists
|
|
9
9
|
if [ ! -d "$SATORI_PATH" ]; then
|
|
10
|
-
echo "
|
|
10
|
+
echo "Directory $SATORI_PATH does not exist. Installation may have failed."
|
|
11
11
|
exit 1
|
|
12
12
|
fi
|
|
13
13
|
|
|
14
14
|
# Check if binary exists
|
|
15
15
|
if [ -f "$SATORI_PATH/satori" ]; then
|
|
16
|
-
echo "
|
|
16
|
+
echo "Binary found at: $SATORI_PATH/satori"
|
|
17
17
|
else
|
|
18
|
-
echo "
|
|
18
|
+
echo "Binary not found at: $SATORI_PATH/satori"
|
|
19
19
|
fi
|
|
20
20
|
|
|
21
21
|
# Detectar shell y archivo de configuración
|
|
@@ -40,12 +40,12 @@ PROFILE_FILE=$(detect_profile)
|
|
|
40
40
|
|
|
41
41
|
# Check if line already exists
|
|
42
42
|
if [[ -f "$PROFILE_FILE" ]] && grep -qF "$EXPORT_LINE" "$PROFILE_FILE"; then
|
|
43
|
-
echo "
|
|
44
|
-
echo "
|
|
43
|
+
echo "PATH already exists in $PROFILE_FILE"
|
|
44
|
+
echo "PATH already contains ~/.satori/bin"
|
|
45
45
|
else
|
|
46
|
-
echo "
|
|
46
|
+
echo "Adding to PATH in $PROFILE_FILE"
|
|
47
47
|
echo -e "\n# Added by Satori\n$EXPORT_LINE" >> "$PROFILE_FILE"
|
|
48
|
-
echo "
|
|
48
|
+
echo "Run: source $PROFILE_FILE"
|
|
49
49
|
fi
|
|
50
50
|
|
|
51
|
-
echo "
|
|
51
|
+
echo "Configuration completed"
|