]> git.99rst.org Git - openwrt-packages.git/commitdiff
fish: fix postrm script interpreter
authorDharmik Parmar <redacted>
Thu, 18 Jun 2026 16:06:02 +0000 (21:36 +0530)
committerJosef Schlehofer <redacted>
Mon, 6 Jul 2026 08:01:00 +0000 (10:01 +0200)
Add the missing shell interpreter line to the postrm script.

This lets apk run the generated post-deinstall hook when fish is removed.

Bump PKG_RELEASE for the package script change.

Fixes: #29348
Signed-off-by: Dharmik Parmar <redacted>
utils/fish/Makefile

index 3cae0c993b93c5eaef441f60ee05b0e35330f714..b97c0c2ecf8cff4d9f642c0a114d85765aae3bdb 100644 (file)
@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=fish
 PKG_VERSION:=4.7.1
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=https://github.com/fish-shell/fish-shell/releases/download/$(PKG_VERSION)
@@ -84,7 +84,8 @@ fi
 endef
 
 define Package/fish/postrm
-       rm -rf "$${IPKG_INSTROOT}/$(CONFIGURE_PREFIX)/share/fish/$(PKG_VERSION)"
+#!/bin/sh
+rm -rf "$${IPKG_INSTROOT}/$(CONFIGURE_PREFIX)/share/fish/$(PKG_VERSION)"
 endef
 
 $(eval $(call BuildPackage,fish))
git clone https://git.99rst.org/PROJECT