Fix install script
use `cd -` on returning.
This commit is contained in:
@@ -24,10 +24,9 @@ cat > $bin_path/$pokemonsay_bin <<- EOF
|
|||||||
# runs the main script for running the pokemonsay, and changes
|
# runs the main script for running the pokemonsay, and changes
|
||||||
# back to the previous directory.
|
# back to the previous directory.
|
||||||
|
|
||||||
current_path=`pwd`
|
|
||||||
cd $install_path/
|
cd $install_path/
|
||||||
./pokemonsay.sh \$@
|
./pokemonsay.sh \$@
|
||||||
cd \$current_path
|
cd - >/dev/null
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Create the pokemonthink script in the home bin directory.
|
# Create the pokemonthink script in the home bin directory.
|
||||||
@@ -38,10 +37,9 @@ cat > $bin_path/$pokemonthink_bin <<- EOF
|
|||||||
# runs the main script for running the pokemonthink, and changes
|
# runs the main script for running the pokemonthink, and changes
|
||||||
# back to the previous directory.
|
# back to the previous directory.
|
||||||
|
|
||||||
current_path=`pwd`
|
|
||||||
cd $install_path/
|
cd $install_path/
|
||||||
./pokemonthink.sh \$@
|
./pokemonthink.sh \$@
|
||||||
cd \$current_path
|
cd - >/dev/null
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Create uninstall script in the install directory
|
# Create uninstall script in the install directory
|
||||||
|
|||||||
Reference in New Issue
Block a user