fixed syntax error in postinst
authorEd Bartosh <bartosh@gmail.com>
Sat, 17 Jan 2009 12:49:36 +0000 (12:49 +0000)
committerEd Bartosh <bartosh@gmail.com>
Sat, 17 Jan 2009 12:49:36 +0000 (12:49 +0000)
debian/xkcdha.postinst

index f129e73..e4db379 100755 (executable)
@@ -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