Skip to content

Commit bcbc347

Browse files
committed
Make did not seem to understand the case statment
``` 10:59:27 case "ubuntu-20.04" in 10:59:27 /bin/sh: 1: Syntax error: end of file unexpected (expecting ")") ``` Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
1 parent f94bcc7 commit bcbc347

File tree

1 file changed

+2
-8
lines changed
  • deps-packaging/git/debian

1 file changed

+2
-8
lines changed

deps-packaging/git/debian/rules

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,8 @@ install: build
2323
dh_clean -k
2424
dh_installdirs
2525

26-
case "$(OS)-$(OS_VERSION)" in
27-
ubuntu-16*)
28-
patch -p1 < $(CURDIR)/fix_git_on_old_platforms.patch
29-
;;
30-
debian-9*)
31-
patch -p1 < $(CURDIR)/fix_git_on_old_platforms.patch
32-
;;
33-
esac
26+
if expr "$(OS)-$(OS_VERSION)" : "ubuntu-16.*" ; then patch -p1 < $(CURDIR)/fix_git_on_old_platforms.patch ; fi
27+
if expr "$(OS)-$(OS_VERSION)" : "ubuntu-9.*" ; then patch -p1 < $(CURDIR)/fix_git_on_old_platforms.patch ; fi
3428

3529
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
3630

0 commit comments

Comments
 (0)