-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up install script, add comment in README
- Loading branch information
1 parent
d6760c8
commit 7acd404
Showing
2 changed files
with
15 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,16 @@ | ||
#!/bin/bash | ||
git clone --recursive https://github.com/ash-shell/ash.git | ||
new_location="/usr/local/ash" | ||
mv "./ash" "$new_location" | ||
script_location="/usr/local" | ||
path_location="/usr/local/bin" | ||
current_location="$(pwd)" | ||
|
||
# Clone | ||
cd "$script_location" | ||
git clone --recursive https://github.com/ash-shell/ash.git | ||
|
||
# Add to $PATH | ||
cd "$path_location" | ||
ln -s "$new_location/ash" . | ||
echo "Ash successfully installed" | ||
ln -s "$script_location/ash/ash" . | ||
echo "Ash successfully installed to $script_location/ash" | ||
|
||
# Move back | ||
cd "$current_location" |