Browse Source

dpkg-maintscript-helper: Fix logic in symlink argument check

The check was inverted.

Regression introduced in commit 4266c68bc4516d706544555026b00c5be759b24c.
Guillem Jover 11 years ago
parent
commit
f027f74392
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scripts/dpkg-maintscript-helper.sh

+ 1 - 1
scripts/dpkg-maintscript-helper.sh

@@ -256,7 +256,7 @@ symlink_to_dir() {
 	[ -n "$SYMLINK" ] || error "symlink parameter is missing"
 	[ "${SYMLINK#/}" = "$SYMLINK" ] && \
 		error "symlink pathname is not an absolute path"
-	[ "${SYMLINK%/}" = "$SYMLINK" ] && \
+	[ "${SYMLINK%/}" = "$SYMLINK" ] || \
 		error "symlink pathname ends with a slash"
 	[ -n "$SYMLINK_TARGET" ] || error "original symlink target is missing"
 	[ -n "$1" ] || error "maintainer script parameters are missing"