[tracker] Fix bashism



commit 51535325b1a323111919aab9a7b65ec159419a66
Author: Sam Thursfield <sam afuera me uk>
Date:   Thu Jan 9 11:31:58 2020 +0100

    Fix bashism
    
    Commit 8da1f13c7df386163b2627 added the make-subcommand-links.sh script.
    This specifies #!/bin/sh as its shell but was using Bash-specific shell
    syntax, causing breakages on some platforms.
    
    See https://gitlab.gnome.org/GNOME/tracker/merge_requests/168#note_680855

 src/tracker/make-subcommand-links.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/tracker/make-subcommand-links.sh b/src/tracker/make-subcommand-links.sh
index a257d1612..2bfc44c91 100644
--- a/src/tracker/make-subcommand-links.sh
+++ b/src/tracker/make-subcommand-links.sh
@@ -10,7 +10,7 @@ then
     for l in `find $libexecdir/tracker -type l`
     do
        # Delete all previous links to our own binary
-       if [[ `readlink $l` = "$bindir/tracker" ]]
+       if [ `readlink $l` = "$bindir/tracker" ]
        then
            rm $l
        fi


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