Updated install script
This commit is contained in:
7
install.sh
Normal file → Executable file
7
install.sh
Normal file → Executable file
@@ -9,18 +9,17 @@ unsupported_shell () {
|
|||||||
|
|
||||||
install () {
|
install () {
|
||||||
mkdir ~/.steamtricks
|
mkdir ~/.steamtricks
|
||||||
cp -r src/* ~/.steamtricks
|
cp -r steamtricks/* ~/.steamtricks
|
||||||
export SHELLPROFILE="~/.${1}rc"
|
export SHELLPROFILE="~/.${1}rc"
|
||||||
echo "export STEAMTRICKS_PREFIX=\"~/.steamtricks\"">>"${SHELLPROFILE}"
|
echo "export STEAMTRICKS_PREFIX=\"~/.steamtricks\"">>"${SHELLPROFILE}"
|
||||||
echo "export PATH=\"$PATH:$HOME/.steamtricks/bin\""
|
echo "export PATH=\"\$PATH:$HOME/.steamtricks/bin\"">>${SHELLPROFILE}
|
||||||
source "${SHELLPROFILE}"
|
source "${SHELLPROFILE}"
|
||||||
edit_prefix
|
edit_prefix
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
install_manager () {
|
install_manager () {
|
||||||
case "$1" in
|
case "$1" in
|
||||||
bash | zsh | yash) install
|
bash | zsh | yash) install $1
|
||||||
;;
|
;;
|
||||||
*) unsupported_shell
|
*) unsupported_shell
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user