diff options
author | Erich Eckner <git@eckner.net> | 2021-03-23 10:55:28 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-03-23 10:55:28 +0100 |
commit | 242437d43cc15f303c2b449f3da012a098eb0bfa (patch) | |
tree | faf1e2e5c046025caef11dd254c0a2b8b8b3c959 /archPackagesUpdate | |
parent | fef476410db1dae2af1c36538822045dcdf1b5e4 (diff) | |
download | archlinuxewe-242437d43cc15f303c2b449f3da012a098eb0bfa.tar.xz |
archPackagesUpdate: check for submodule directory
Diffstat (limited to 'archPackagesUpdate')
-rwxr-xr-x | archPackagesUpdate | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/archPackagesUpdate b/archPackagesUpdate index dda0538c5..aa2f4911b 100755 --- a/archPackagesUpdate +++ b/archPackagesUpdate @@ -7,7 +7,10 @@ pkgDir='/srv/http/vhosts/eckner.net/archlinuxewe/os' pkgDir32Mount='/mnt/mirror.archlinux32.org' pkgDir32="${pkgDir32Mount}/x86_64/releng" pkgSrcDir=$(dirname $(readlink -f -n "$0")) -submoduleDir=$(readlink -e "${pkgSrcDir}/../submodules") +if ! submoduleDir=$(readlink -e "${pkgSrcDir}/../submodules"); then + >&2 echo 'Submodule directory not found.' + exit 1 +fi export SRCDEST="${HOME}/packageSources" export PACKAGER='Erich Eckner <arch at eckner dot net>' key='5FDCA472AB93292BC678FD59255A76DB9A12601A' |