Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
audoban committed Jan 14, 2015
1 parent c6c4a3d commit 4fec2cb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
7 changes: 2 additions & 5 deletions dolphin-folder-color.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,14 @@
#
#
# Version 1.3
# folder-icon.sh ICON_NAME PATH1 PATH2 ...
# dolphin-folder-color.sh ICON_NAME PATH1 PATH2 ...
# name: is a color or any other folder-$icon or freedesktop icon

shopt -s extglob
icon=${1:?'Name or color icon not present'} ; shift
icon=${1:?'Name or color icon is not present'} ; shift
desktopEntry='.directory'
tmp=$TMPDIR/$desktopEntry-$PPID

echo "icon..: $icon"

case $icon in
default | black | blue | brown |\
Expand Down Expand Up @@ -53,8 +52,6 @@ case $icon in
fi
esac

echo "icon: $icon"

for dir in "$@" ; do
cd "$dir"
tag=$(grep 'Icon=.*' $desktopEntry)
Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#
# Version: 1.2
# Version: 1.3
# INSTALL: Only run this script

shopt -s extglob
Expand Down
2 changes: 1 addition & 1 deletion plasma5-folder-color.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Name[fr]=Icône personnalisée
Name[it]=Icona Personalizzata
Name[pt]=Ícone personalizado
Name[de]=Custom Icon
Exec=dolphin-folder-color.sh custom %U
Exec=dolphin-folder-color.sh custom %U

#########################################

Expand Down

0 comments on commit 4fec2cb

Please sign in to comment.