diff --git a/styler/.local/bin/styler b/styler/.local/bin/styler index 1d5f683..ebc13a8 100755 --- a/styler/.local/bin/styler +++ b/styler/.local/bin/styler @@ -55,7 +55,7 @@ usage() { " set [theme] Set the theme. Use any valid base16 theme name (without base16- prefix)." \ " Same as 'theme' option, but changes will be made permanent." \ "" \ - " list [processors|template|themes] Print out all currently installed processors, templates, or themes from selection. " \ + " list [processors|packages|themes] Print out all currently installed processors, templates, or themes from selection. " \ "" \ " download [username/repository] Download a base16 template into the package directory or download a processor16" \ " into the processor directory. Use user/repo format to automatically pull from github." \ @@ -149,10 +149,10 @@ set_theme() { # carry standard names this removes everything before base16- # the result is the application it targets # shellcheck disable=SC2001 - appext=$(sed "s|^[[:alnum:]]\{1,\}/base16-||" <<<"$pkg") + appext=$(sed -e 's|^[A-Za-z0-9-]\{1,\}/base16-||' <<<"$pkg") # Compares application extension with existing processors and runs the appropriate processor if found - processor=$(find "$PROCESSOR_PATH" -type f -name "theme_$appext") + processor=$(find "$PROCESSOR_PATH" -type f | grep -e "theme_$appext") if [[ -f "$processor" ]]; then "$processor" "$PACKAGE_PATH" "$pkg" "$theme" "$permanent" else