From 2ca83878671a27f000793b81dfe4970fe4d78d1f Mon Sep 17 00:00:00 2001 From: Daniel Tomlinson Date: Fri, 6 May 2022 02:57:54 +0100 Subject: [PATCH] add `.plg` --- dev.unraid-bat.plg | 70 ++++++++++++++++++++++++++++++++++++++++++++++ unraid-bat.plg | 69 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 139 insertions(+) create mode 100644 dev.unraid-bat.plg create mode 100644 unraid-bat.plg diff --git a/dev.unraid-bat.plg b/dev.unraid-bat.plg new file mode 100644 index 0000000..69864f8 --- /dev/null +++ b/dev.unraid-bat.plg @@ -0,0 +1,70 @@ + + + + + + + + + + + +]> + + + + + +###2022-05-05 +- Initial release - bat v0.20.0 + + + + + + +file=$(/usr/bin/ls /boot/config/plugins/&name;/&name;*.txz | grep -v '&version;') +if [ ! -z "$file" ] +then + filename=$(basename -- $file) + previous="${filename%.*}" + echo "previous version ${previous} found - uninstalling" + removepkg $previous + rm -f $file +else + echo "no previous version found - first time install" +fi + + + + +&releaseURL; +&md5; + + + + + **bat** + + A cat(1) clone with syntax highlighting and Git integration. + + See the [git repository](https://github.com/sharkdp/bat) for bat for more information. + + + + + +echo "*** Removing bat ***" + +# Remove plugin related files +removepkg &name;-&version; + +rm -rf &emhttp; +rm -rf &plugin; + +echo +echo "*** Successfully removed bat ***" + + + diff --git a/unraid-bat.plg b/unraid-bat.plg new file mode 100644 index 0000000..ab8b8dc --- /dev/null +++ b/unraid-bat.plg @@ -0,0 +1,69 @@ + + + + + + + + + + + +]> + + + + +###2022-05-05 +- Initial release - bat v0.10.1 + + + + + + +file=$(/usr/bin/ls /boot/config/plugins/&name;/&name;*.txz | grep -v '&version;') +if [ ! -z "$file" ] +then + filename=$(basename -- $file) + previous="${filename%.*}" + echo "previous version ${previous} found - uninstalling" + removepkg $previous + rm -f $file +else + echo "no previous version found - first time install" +fi + + + + +&releaseURL; +&md5; + + + + +**bat** + +A cat(1) clone with syntax highlighting and Git integration. + +See the [git repository](https://github.com/sharkdp/bat) for bat for more information. + + + + + +echo "*** Removing bat ***" + +# Remove plugin related files +removepkg &name;-&version; + +rm -rf &emhttp; +rm -rf &plugin; + +echo +echo "*** Successfully removed bat ***" + + +