diff options
| author | herkulessi <git@herkulessi.de> | 2026-04-30 17:19:07 +0200 |
|---|---|---|
| committer | herkulessi <git@herkulessi.de> | 2026-04-30 17:19:07 +0200 |
| commit | b65dc10ca8cbb7cf46c67c2bdfb8a5f27a3aaf76 (patch) | |
| tree | 6910f6aaadff6dbe8cf29f0c60f584d7d6ee9103 | |
| parent | 3be308fe0ccd820514f68423c31b3fdddc87cb7d (diff) | |
Fix unbound Variable crashes
| -rwxr-xr-x | pkgsync-ng-nt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgsync-ng-nt b/pkgsync-ng-nt index d8c8d8f..da1f32a 100755 --- a/pkgsync-ng-nt +++ b/pkgsync-ng-nt @@ -11,7 +11,7 @@ # AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -if [ -z "PACKAGE_NAME" ]; then +if [ -z "$PACKAGE_NAME" ]; then PACKAGE_NAME="pkgsync-ng-nt" fi @@ -66,9 +66,11 @@ Conflicts: $DONT_INSTALL Description: Metapackage for all needed packages. This is a dummy package, depending on other packages to make Package Management easier. EOF -if ! [ -z ""$PACKAGE_MAINTAINER ]; then +set +u +if ! [ -z "$PACKAGE_MAINTAINER" ]; then echo "Maintainer: $PACKAGE_MAINTAINER" >> "$PACKAGE_NAME" fi +set -u equivs-build "$PACKAGE_NAME" |
