]> https://raw.githubusercontent.com/johnngone/micro-editor-unraid/main/plugin/micro-editor.png /boot/config/plugins/&name;/micro-editor.png **Micro Editor** Installs the `micro` terminal editor by Zachary Yedidia and contributors. #!/bin/bash set -euo pipefail PLUGIN="&name;" WORK="$(mktemp -d "/tmp/${PLUGIN}.XXXXXX")" ARCHIVE="${WORK}/micro.tar.gz" trap 'rm -rf -- "${WORK}"' EXIT echo "Downloading Micro..." wget -qO "${ARCHIVE}" "&archiveURL;" printf '%s %s\n' "&sha256;" "${ARCHIVE}" | sha256sum -c - echo "Extracting Micro..." tar -xzf "${ARCHIVE}" -C "${WORK}" --strip-components=1 echo "Installing micro binary..." install -m 0755 "${WORK}/micro" /usr/local/bin/micro install -m 0644 "${WORK}/LICENSE" "${WORK}/LICENSE-THIRD-PARTY" /usr/local/emhttp/plugins/&name;/ echo "Done. Try: micro" #!/bin/bash set -euxo pipefail rm -f /usr/local/bin/micro rm -rf /usr/local/emhttp/plugins/&name; echo "Removed Micro."