X-Git-Url: http://git.maemo.org/git/?p=xkcdha;a=blobdiff_plain;f=debian%2Fxkcdha.postinst;h=e4db379c8457b47b794a3c3dd3aaefdaf5eaf1f5;hp=f129e7324206f07e462bfbad9f37818d5217c1a8;hb=d822c070ffdeadde7356c0b1a1137ea2124189f1;hpb=533fc2a0d123cbcba1b42ccb9cfcd70a1a92d387 diff --git a/debian/xkcdha.postinst b/debian/xkcdha.postinst index f129e73..e4db379 100755 --- 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" -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