[gnome-photos] Avoid bash-specific syntax in photos-generate-about



commit b1a2270f5af740ed38ddd1e1d52c46b92b213b3a
Author: Adam Dingle <adam yorba org>
Date:   Sun May 5 15:55:10 2013 -0400

    Avoid bash-specific syntax in photos-generate-about
    
    https://bugzilla.gnome.org/show_bug.cgi?id=698086

 src/photos-generate-about |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/photos-generate-about b/src/photos-generate-about
index e5fda33..48e4ee9 100755
--- a/src/photos-generate-about
+++ b/src/photos-generate-about
@@ -20,7 +20,7 @@
 #
 
 
-[[ "$1" = "--header" ]] &&
+[ "$1" = "--header" ] &&
     echo "#ifndef PHOTOS_ABOUT_DATA_H" &&
     echo "#define PHOTOS_ABOUT_DATA_H" &&
     echo "#include <glib.h>" &&
@@ -33,9 +33,9 @@
 
 echo "const gchar *PHOTOS_ARTISTS[] = {"
 while read line; do
-    [[ $(echo "$line" | cut -c1) = "#" ]] &&
+    [ "$(echo "$line" | cut -c1)" = "#" ] &&
         continue
-    [[ ${#line} -eq 0 ]] &&
+    [ ${#line} -eq 0 ] &&
         continue
     echo "  \"$line\","
 done < $2/ARTISTS
@@ -44,9 +44,9 @@ echo "};"
 
 echo "const gchar *PHOTOS_AUTHORS[] = {"
 while read line; do
-    [[ $(echo "$line" | cut -c1) = "#" ]] &&
+    [ "$(echo "$line" | cut -c1)" = "#" ] &&
         continue
-    [[ ${#line} -eq 0 ]] &&
+    [ ${#line} -eq 0 ] &&
         continue
     echo "  \"$line\","
 done < $2/AUTHORS


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]