summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2008-10-24 08:27:18 +0000
committerAlexander Larsson <alexl@redhat.com>2008-10-24 08:27:18 +0000
commit2f28f353ec3cf9288da70bab3ca963f2144808f0 (patch)
treeaa232f6a529fa90a9def0a1c7dbc98465577107a
parent2180394e6f45b0905399ebc2be07b79b68e9239f (diff)
2008-10-24 Alexander Larsson <alexl@redhat.com>
* xdg-user-dir: Fix bashisms. Patch from Lei Zhang <thestig@google.com>
-rw-r--r--ChangeLog6
-rwxr-xr-xxdg-user-dir4
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 5657217..0ade1fc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-10-24 Alexander Larsson <alexl@redhat.com>
+
+ * xdg-user-dir:
+ Fix bashisms.
+ Patch from Lei Zhang <thestig@google.com>
+
2008-02-12 Alexander Larsson <alexl@redhat.com>
* configure.ac:
diff --git a/xdg-user-dir b/xdg-user-dir
index c1ec213..d64fcd6 100755
--- a/xdg-user-dir
+++ b/xdg-user-dir
@@ -1,7 +1,7 @@
#!/bin/sh
-test -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs && source ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs
-if [ "x$1" == "xDESKTOP" ]; then
+test -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs && . ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs
+if [ "x$1" = "xDESKTOP" ]; then
eval echo \${XDG_${1}_DIR:-$HOME/Desktop}
else
eval echo \${XDG_${1}_DIR:-$HOME}