projects
/
xkcdha
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
533fc2a
)
fixed syntax error in postinst
author
Ed Bartosh
<bartosh@gmail.com>
Sat, 17 Jan 2009 12:49:36 +0000
(12:49 +0000)
committer
Ed Bartosh
<bartosh@gmail.com>
Sat, 17 Jan 2009 12:49:36 +0000
(12:49 +0000)
debian/xkcdha.postinst
patch
|
blob
|
history
diff --git
a/debian/xkcdha.postinst
b/debian/xkcdha.postinst
index
f129e73
..
e4db379
100755
(executable)
--- a/
debian/xkcdha.postinst
+++ b/
debian/xkcdha.postinst
@@
-7,8
+7,8
@@
GROUP="users"
ICON_CACHE=/usr/bin/gtk-update-icon-cache
IMG_DIR="/home/$USER/MyDocs/.images/$PKG"
ICON_CACHE=/usr/bin/gtk-update-icon-cache
IMG_DIR="/home/$USER/MyDocs/.images/$PKG"
-if [ "$1" = "configure" ]
- [ -d $IMG_DIR ] && (mkdir $IMG_DIR && chown -R $USER:$GROUP $IMG_DIR)
+if [ "$1" = "configure" ] ; then
+ [ -d $IMG_DIR ] || (mkdir $IMG_DIR && chown -R $USER:$GROUP $IMG_DIR)
[ -x $ICON_CACHE ] && $ICON_CACHE -f /usr/share/icons/hicolor
fi
[ -x $ICON_CACHE ] && $ICON_CACHE -f /usr/share/icons/hicolor
fi