-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·30 lines (30 loc) · 1.14 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh
#-------------------------------------------------------------------------------#
# yourgnome version 2 #
# http://code.google.com/p/yourgnome #
# Licence: GPL version 3 #
# GPL version 3 (http://www.gnu.org/licenses/quick-guide-gplv3.html) #
#-------------------------------------------------------------------------------#
zenity --help > /dev/null &
if [ "$?" = 0 ] ; then
if [ ! -d $HOME/yourgnomeTEMP ]; then
mkdir $HOME/yourgnomeTEMP
if [ "$?" = 1 ] ; then
echo " Error: Cannot write to folder \n $HOME";
exit;
fi
fi
cp yourgnome2.sh /usr/bin/yourgnome
patch -f -s -p0 /usr/share/zenity/zenity.glade < zenity-2.24.0-focus.patch > /dev/null
if [ "$?" = 0 ] ; then
echo " yourgnome2 Installed Succefully !";
echo " you can run it by running the command: yourgnome";
else
echo " Errors while installing yourgnome2 !";
echo " Error: You've to be root to install yourgnome2 \n try running this file again after being root or using sudo command";
echo " Or: Delete the line number 18 in this install script then, re-run it.";
fi
else
echo " Error: Check that you\'ve package zenity installed.";
exit;
fi