~fs-icons-ubuntu/fs-icons-ubuntu/trunk

« back to all changes in this revision

Viewing changes to fs-icons-ubuntu/extra/hplip/restore-icons.sh

  • Committer: Frank Souza
  • Date: 2012-11-14 03:54:35 UTC
  • Revision ID: franksouza183@gmail.com-20121114035435-80zreb6ctqoqly7c
Action icons on main pack changed, orange set will be moved to new mono variant
Some small app icons changed to mono standard

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
currentscriptpath()
 
4
{
 
5
local fullpath=`echo "$(readlink -f $0)"`
 
6
local fullpath_length=`echo ${#fullpath}`
 
7
local scriptname="$(basename $0)"
 
8
local scriptname_length=`echo ${#scriptname}`
 
9
local result_length=`echo $fullpath_length - $scriptname_length - 1 | bc`
 
10
local result=`echo $fullpath | head -c $result_length`
 
11
echo $result
 
12
}
 
13
 
 
14
currentpath=`currentscriptpath`
 
15
 
 
16
cd "$currentpath"
 
17
 
 
18
if [ ! -d /usr/share/hplip ]
 
19
then
 
20
        zenity --info --text "HPLip não está instalado, ou está instalado em outro diretório"
 
21
        exit 1
 
22
else
 
23
        gksudo "sh restore-icons-cmd.sh"
 
24
fi
 
 
b'\\ No newline at end of file'