File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ function prompt_yes_no {
63
63
}
64
64
65
65
confirmed=$( prompt_yes_no " Do you want to continue with the installation?" )
66
- if [ " $confirmed " -eq 1 ]; then
66
+ if [ $confirmed == 1 ]; then
67
67
echo -e " ${RED} Installation aborted.${NC} "
68
68
exit 1
69
69
fi
@@ -101,10 +101,10 @@ if [[ "$PKG_TYPE" == "deb" || "$PKG_TYPE" == "rpm" ]]; then
101
101
102
102
if [[ " $PKG_TYPE " == " deb" ]]; then
103
103
sudo dpkg -i " $TEMP_DIR /grhooks.deb" || sudo apt-get install -f -y
104
- INSTALL_DIR=$( which grhooks || echo " /usr/bin/grhooks" )
104
+ INSTALL_DIR=$( dirname $( which grhooks) || echo " /usr/bin/grhooks" )
105
105
else
106
106
sudo rpm -ivh " $TEMP_DIR /grhooks.rpm" || sudo yum install -y
107
- INSTALL_DIR=$( which grhooks || echo " /usr/bin/grhooks" )
107
+ INSTALL_DIR=$( dirname $( which grhooks) || echo " /usr/bin/grhooks" )
108
108
fi
109
109
else
110
110
sudo tar -xJf " $TEMP_DIR /grhooks.tar.xz" -C " $TEMP_DIR "
You can’t perform that action at this time.
0 commit comments