aarch64 bugfix and minor formatting updates

This commit is contained in:
AJ ONeal
2020-09-22 19:59:43 +00:00
parent 73156662b4
commit afe8aab57a
6 changed files with 12 additions and 18 deletions

View File

@@ -25,7 +25,7 @@ This repository contains the primary and community-submitted packages for
More technically:
1. `<package>/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

View File

@@ -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

View File

@@ -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';

View File

@@ -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"

View File

@@ -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
```

View File

@@ -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 <https://github.com/microsoft/WSL/issues/5014>
See also <https://github.com/microsoft/WSL/issues/5014#issuecomment-692432322>
### Error: Required Feature Not Installed