Skip to content

Commit d30becf

Browse files
committed
Updated Script
1 parent 1cd6b8a commit d30becf

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

scripts/install.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ if [[ ":$PATH:" != *":$INSTALL_DIR:"* ]]; then
171171
add_to_path "$config_file" "export PATH=$INSTALL_DIR:\$PATH"
172172
;;
173173
*)
174-
export PATH=$INSTALL_DIR:$PATH
175174
print_message warning "Manually add the directory to $config_file (or similar):"
176175
print_message info " export PATH=$INSTALL_DIR:\$PATH"
177176
;;
@@ -181,4 +180,15 @@ fi
181180
if [ -n "${GITHUB_ACTIONS-}" ] && [ "${GITHUB_ACTIONS}" == "true" ]; then
182181
echo "$INSTALL_DIR" >> $GITHUB_PATH
183182
print_message info "Added $INSTALL_DIR to \$GITHUB_PATH"
184-
fi
183+
fi
184+
185+
# Final instructions for immediate usage
186+
print_message info ""
187+
print_message info "Installation completed successfully!"
188+
print_message info ""
189+
print_message info "To use ${ORANGE}feature-installer${GREEN} immediately, run one of the following:"
190+
print_message info " 1. ${YELLOW}source ~/.bashrc${GREEN} (or your shell's config file)"
191+
print_message info " 2. ${YELLOW}export PATH=$INSTALL_DIR:\$PATH${GREEN}"
192+
print_message info " 3. ${YELLOW}$INSTALL_DIR/feature-installer${GREEN} (use full path)"
193+
print_message info ""
194+
print_message info "Or simply start a new terminal session."

0 commit comments

Comments
 (0)