merge into main (#1)

Co-authored-by: Daniel Tomlinson <dtomlinson@panaetius.co.uk>
Reviewed-on: https://git.panaetius.co.uk/unraid-plugins/exa/pulls/1
This commit is contained in:
2022-05-05 02:57:35 +00:00
parent c3f626951d
commit 5bae7016b9
4 changed files with 131 additions and 0 deletions

59
exa.plg Normal file
View File

@@ -0,0 +1,59 @@
<?xml version='1.0' standalone='yes'?>
<!DOCTYPE PLUGIN [
<!ENTITY name "exa">
<!ENTITY author "dtomlinson">
<!ENTITY org "unraid-plugins">
<!ENTITY version "v0.10.1">
<!ENTITY gitURL "https://git.panaetius.co.uk/&org;/&name;">
<!ENTITY pluginURL "&gitURL;/raw/branch/master/&name;.plg">
<!ENTITY releaseURL "&gitURL;/releases/download/&version;/&name;-&version;.txz">
<!ENTITY md5 "06c8ef59e2f338d5e3eeed46c368967d">
<!ENTITY plugin "/boot/config/plugins/&name;">
<!ENTITY emhttp "/usr/local/emhttp/plugins/&name;">
]>
<PLUGIN name="&name;" author="&author;" version="&version;" pluginURL="&pluginURL;" min="6.8.3">
<CHANGES>
###2022-05-05
- Initial release - exa v0.10.1
</CHANGES>
<FILE Run="/bin/bash">
<INLINE>
rm -f $(ls /boot/config/plugins/&name;/&name;*.txz 2>/dev/null | grep -v '&version;')
</INLINE>
</FILE>
<FILE Name="/boot/config/plugins/&name;/&name;-&version;.txz" Run="upgradepkg --install-new">
<URL>&releaseURL;</URL>
<MD5>&md5;</MD5>
</FILE>
<FILE Name="&emhttp;/README.md">
<INLINE>
**exa**
exa is a modern replacement for the venerable file-listing command-line program ls that ships with Unix and Linux operating systems, giving it more features and better defaults. It uses colours to distinguish file types and metadata. It knows about symlinks, extended attributes, and Git. And its small, fast, and just one single binary.
By deliberately making some decisions differently, exa attempts to be a more featureful, more user-friendly version of ls. For more information, see [exas website](https://the.exa.website/).
</INLINE>
</FILE>
<FILE Run="/bin/bash" Method="remove">
<INLINE>
echo "*** Removing exa ***"
# Remove plugin related files
removepkg &name;-&version;
rm -rf /usr/local/emhttp/plugins/&name;
rm -rf &plugin;
echo
echo "*** Successfully removed exa ***"
</INLINE>
</FILE>
</PLUGIN>