From afe8aab57a5bc8d67886e923d2aa86691506c1f4 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 22 Sep 2020 19:59:43 +0000 Subject: [PATCH] aarch64 bugfix and minor formatting updates --- README.md | 2 +- _example/install.ps1 | 1 - _webi/ua-detect.js | 4 ++-- comrak/install.ps1 | 1 - sd/README.md | 20 ++++++++------------ wsl2/README.md | 2 +- 6 files changed, 12 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 64be737..9538330 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ This repository contains the primary and community-submitted packages for More technically: 1. `/releases.js` transforms the package's release API into a common - formatt + format - (i.e. HTML, CSV, TAB, or JSON into a specific JSON format) - common release APIs are in `_common/` (i.e. `_common/github.js`) 2. `_webi/bootstrap.sh` is a template that exchanges system information for a diff --git a/_example/install.ps1 b/_example/install.ps1 index 9a2744e..e99cf7f 100644 --- a/_example/install.ps1 +++ b/_example/install.ps1 @@ -47,7 +47,6 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) echo "Unpacking $pkg_download" & tar xf "$pkg_download" - # Settle unpacked archive into place echo "Install Location: $pkg_src_cmd" New-Item "$pkg_src_bin" -ItemType Directory diff --git a/_webi/ua-detect.js b/_webi/ua-detect.js index c0483cb..7491677 100644 --- a/_webi/ua-detect.js +++ b/_webi/ua-detect.js @@ -54,9 +54,9 @@ function getArch(ua) { return '-'; } - if (/arm64|arm8|armv8/i.test(ua)) { + if (/aarch64|arm64|arm8|armv8/i.test(ua)) { return 'arm64'; - } else if (/arm7|armv7/i.test(ua)) { + } else if (/aarch|arm7|armv7/i.test(ua)) { return 'armv7l'; } else if (/arm6|armv6/i.test(ua)) { return 'armv6l'; diff --git a/comrak/install.ps1 b/comrak/install.ps1 index cca0fd7..970bfcc 100644 --- a/comrak/install.ps1 +++ b/comrak/install.ps1 @@ -24,7 +24,6 @@ IF (!(Test-Path -Path "$Env:USERPROFILE\.local\opt\$Env:PKG_NAME-v$Env:WEBI_VERS # Move single binary into root of temporary folder & move "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE" "$VERNAME" - # Settle unpacked archive into place echo "New Name: $VERNAME" diff --git a/sd/README.md b/sd/README.md index cbbff5b..68ac2c5 100644 --- a/sd/README.md +++ b/sd/README.md @@ -1,36 +1,34 @@ --- -title: sd -homepage: https://github.com/chmln/sd +title: sd +homepage: https://github.com/chmln/sd tagline: | sd is an intuitive find & replace CLI. --- - - ### Updating `sd` `webi sd@stable` Use the `@beta` tag for pre-releases. - ## Cheat Sheet -> sd is a productive and faster replacement of sed and awk command used for editing files in command line interface,it uses regex syntax -> similar to those used in JavaScript and Python + +> sd is a productive and faster replacement of sed and awk command used for +> editing files in command line interface,it uses regex syntax similar to those +> used in JavaScript and Python ## Usage of sd: ### Replacing Text in a File ```bash - sd 'original word' 'final word' ./file_to_be_changed +sd 'original word' 'final word' ./file_to_be_changed ``` ### Taking out word inside slashes from a given string ```bash - echo "string output shown /word inside slashes/" | sd '.*(/.*/)' '$1' +echo "string output shown /word inside slashes/" | sd '.*(/.*/)' '$1' /word inside slashes/ ``` @@ -43,5 +41,3 @@ Use the `@beta` tag for pre-releases. cat exm.txt| sd -s '@' '' here is an example ``` - - diff --git a/wsl2/README.md b/wsl2/README.md index c109528..e292fc2 100644 --- a/wsl2/README.md +++ b/wsl2/README.md @@ -72,7 +72,7 @@ Copy-Item -Path "$env:TEMP\System32\lxss" -Destination "C:\System32" -Recurse powershell -Command "Start-Process msiexec -Wait -ArgumentList '/i','wsl_update_x64.msi','/quiet','/qn'" ``` -See also +See also ### Error: Required Feature Not Installed -- 2.25.1