summarylogtreecommitdiffstats
path: root/xlunch-create-entry
diff options
context:
space:
mode:
authorDX372017-08-12 11:02:10 +0700
committerDX372017-08-12 11:02:10 +0700
commit0007fc7c077b6d82edb2ca67422286b4045e508e (patch)
tree6377adcdb3c088481ae8c96d536c2ebd1f9be80b /xlunch-create-entry
parent8e0cc992db9e37633989600918601de977c3502f (diff)
downloadaur-0007fc7c077b6d82edb2ca67422286b4045e508e.tar.gz
Get latest changes for xlunch-create-entry
Diffstat (limited to 'xlunch-create-entry')
-rwxr-xr-xxlunch-create-entry8
1 files changed, 4 insertions, 4 deletions
diff --git a/xlunch-create-entry b/xlunch-create-entry
index 6dcef1779e60..46fc2d4179d2 100755
--- a/xlunch-create-entry
+++ b/xlunch-create-entry
@@ -16,15 +16,15 @@ echo "/$1" | grep ".desktop" | while read DESKTOPFILE; do
fi
if [ "$ICONNAME" != "" ]; then
- ICON="$(find "$PIXMAPS" | grep $ICONNAME"[.]png" | head -n 1)"
+ ICON="$(find "$PIXMAPS" | grep $ICONNAME"[.]png$" | head -n 1)"
if [ "$ICON" == "" ]; then
- ICON="$(find "$ICONS" | grep $SIZE"x"$SIZE | grep $ICONNAME"[.]png" | head -n 1)"
+ ICON="$(find "$ICONS" | grep $SIZE"x"$SIZE | grep $ICONNAME"[.]png$" | head -n 1)"
fi
if [ "$ICON" == "" ]; then
- ICON="$(find "$ICONS" | grep "scalable" | grep -E $ICONNAME"[.]png" | head -n 1)"
+ ICON="$(find "$ICONS" | grep "scalable" | grep -E $ICONNAME"[.]png$" | head -n 1)"
if [ "$ICON" == "" ]; then
- SVGICON="$(find "$ICONS" | grep "scalable" | grep -E $ICONNAME"[.]svg" | head -n 1)"
+ SVGICON="$(find "$ICONS" | grep "scalable" | grep -E $ICONNAME"[.]svg$" | head -n 1)"
if type convert >/dev/null 2>&1; then
if [ "$SVGICON" != "" ]; then
mkdir -p "svgicons"