summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2007-03-14 15:52:29 +0100
committerAaron Griffin <aaron@archlinux.org>2007-03-14 15:52:29 +0100
commitc1c12f540ffbce793d94a191bc378c08a7258c4e (patch)
treee6c075d4bc80356772d0e768191838d2527c08e5 /functions
parent3d20ee7e10ff54d76cfd19e64936e701e1e1877e (diff)
downloadmkinitcpio-c1c12f540ffbce793d94a191bc378c08a7258c4e.tar.gz
mkinitcpio-c1c12f540ffbce793d94a191bc378c08a7258c4e.tar.xz
2007-03-14 Jan Peter den Heijer <jpdenheijer@gmail.com>
* mkinitcpio/functions (add_dir) remove existing dir check before adding git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@203 880c04e9-e011-0410-abf7-b926e227c9cd
Diffstat (limited to 'functions')
-rw-r--r--functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions b/functions
index 1464705..19f6df9 100644
--- a/functions
+++ b/functions
@@ -53,7 +53,7 @@ add_full_dir ()
add_dir ()
{
#skip root directory and "." for relative directories... i.e. /foo/bar/./blah
- if [ -d "${1}" -a "x${1}" != "x" -a "${1}" != "/" -a "${1}" != "." ]; then
+ if [ "${1}" -a "x${1}" != "x" -a "${1}" != "/" -a "${1}" != "." ]; then
if ! grep "dir ${1} " "${FILELIST}" 2>&1 > /dev/null; then
add_dir $(dirname "${1}")
msg " adding dir ${1}"