zoneminder/utils
adam ce7b62c825 Fixed unquoted variable which was failing to correctly detect error case
This was discovered when there was a DNS failure (it's always DNS) and
it caused a syntax error on line 178.  I changed it to use -z to check
for a zero length string, as suggested by the man page.  Putting $VERSION
in double quotes would also be a valid fix.

Here's what the script looks like when it fails:

./do_debian_package.sh --snapshot=stable --type=local --interactive=no
Doing local build
Defaulting to bionic for distribution
Defaulting to ZoneMinder upstream git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
Latest stable branch is
git clone https://github.com/ZoneMinder/ZoneMinder.git ZoneMinder_zoneminder_release
Cloning into 'ZoneMinder_zoneminder_release'...
fatal: unable to access 'https://github.com/ZoneMinder/ZoneMinder.git/': Could not resolve host: github.com
./do_debian_package.sh: line 172: cd: ZoneMinder_zoneminder_release: No such file or directory
fatal: not a git repository (or any of the parent directories): .git
cat: ZoneMinder_zoneminder_release/version: No such file or directory
./do_debian_package.sh: line 178: [: ==: unary operator expected
Doing local release zoneminder_
mv: cannot stat 'ZoneMinder_zoneminder_release': No such file or directory
Error status code is: 0
Setting up build dir failed.
2019-12-29 14:13:49 -06:00
..
docker docker support files moved to zmdockerfiles 2018-01-19 15:15:11 -06:00
packpack exclude external-repo.noarch.rpm during deployments 2019-12-27 09:12:49 -06:00
travis Use full path to zm_create.sql in bootstrap-zm.sh 2014-06-27 14:13:29 -04:00
bump-version.pl Added CMakeLists.txt to bump-version.pl 2014-02-06 22:39:12 -05:00
do_debian_package.sh Fixed unquoted variable which was failing to correctly detect error case 2019-12-29 14:13:49 -06:00
generate_apache_config.pl escape $ 2019-06-21 10:19:48 -04:00
mk_bigfont.pl update gpl 2 mailing address in source files 2016-12-26 09:23:16 -06:00
travis.pl Set execute bit on travis.pl 2014-01-04 14:45:22 -05:00
zm-alarm.pl update the way we access mapped mem in zm-alarm.pl 2018-09-19 12:06:09 -05:00
zmeditconfigdata.sh fix zmeditcongifdata.sh 2018-07-03 15:30:11 -05:00