From da8d3ecb1e3009a8e44fe886feb6eef0ff19b669 Mon Sep 17 00:00:00 2001 From: Motonobu Kuryu Date: Wed, 1 Feb 2017 17:05:17 +0900 Subject: [PATCH] Fix install script use `cd -` on returning. --- install.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 21bd60d..0155e1c 100755 --- a/install.sh +++ b/install.sh @@ -24,10 +24,9 @@ cat > $bin_path/$pokemonsay_bin <<- EOF # runs the main script for running the pokemonsay, and changes # back to the previous directory. - current_path=`pwd` cd $install_path/ ./pokemonsay.sh \$@ - cd \$current_path + cd - >/dev/null EOF # 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 # back to the previous directory. - current_path=`pwd` cd $install_path/ ./pokemonthink.sh \$@ - cd \$current_path + cd - >/dev/null EOF # Create uninstall script in the install directory