diff options
author | Aaron Griffin <aaron@archlinux.org> | 2007-03-14 15:52:29 +0100 |
---|---|---|
committer | Aaron Griffin <aaron@archlinux.org> | 2007-03-14 15:52:29 +0100 |
commit | c1c12f540ffbce793d94a191bc378c08a7258c4e (patch) | |
tree | e6c075d4bc80356772d0e768191838d2527c08e5 | |
parent | 3d20ee7e10ff54d76cfd19e64936e701e1e1877e (diff) | |
download | mkinitcpio-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
-rw-r--r-- | functions | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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}" |