summaryrefslogtreecommitdiff
path: root/update-submodule
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-02-18 09:29:04 +0100
committerErich Eckner <git@eckner.net>2020-02-18 09:29:04 +0100
commit6062dff07822354920c5d7b061d98862cbb245ac (patch)
tree485fa9b49b476cb79d3528ebdca28ed0c3971884 /update-submodule
parent114aed2a8d54c93eeac1d28c4d3e9c3db64306df (diff)
downloadarchlinuxewe.git.save-6062dff07822354920c5d7b061d98862cbb245ac.tar.xz
update-submodule: fix check
Diffstat (limited to 'update-submodule')
-rwxr-xr-xupdate-submodule2
1 files changed, 1 insertions, 1 deletions
diff --git a/update-submodule b/update-submodule
index e1ea58aa..101994cc 100755
--- a/update-submodule
+++ b/update-submodule
@@ -11,7 +11,7 @@ if [ -n "$(ls -A "${path}")" ]; then
exit
fi
mkdir -p "${path}"
-if [ -n "${submoduleDir}" ]; then
+if [ -d "${submoduleDir}" ]; then
upstream="${submoduleDir}/${path}"
if [ ! -d "${upstream}" ]; then
git clone -q "${url}" "${upstream}"