Copy the uninstall script to the install directory too

Now the install script will also copy the uninstall script to the
install path, along with the other files.
This commit is contained in:
Lucas Possatti
2015-06-11 01:02:11 -03:00
parent a2b836845a
commit a997e6100c

View File

@@ -9,9 +9,11 @@ mkdir -p $install_path
mkdir -p $install_path/cows/
mkdir -p $bin_install_path
# Copy the cows and the main script to the install path.
# Copy the cows, the main script and the uninstall script to the
# install path.
cp ./cows/*.cow $install_path/cows/
cp ./pokemonsay.sh $install_path
cp ./uninstall.sh $install_path
# Create a main script in the home bin directory.
cat > $bin_install_path/pokemonsay <<- EOF
@@ -31,5 +33,6 @@ EOF
chmod +x $bin_install_path/pokemonsay
echo "The files were installed to '$install_path'."
echo "The 'pokemonsay' script was created in '$bin_install_path'."
echo "A 'pokemonsay' script was created in '$bin_install_path'."
echo "The uninstall script was copied to '$install_path'."
echo "It may be necessary to logout and login back again in order to have the 'pokemonsay' available in your path."