From 18217b2f1719ea88487e33bf41ba755b1b972fa6 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sun, 5 Nov 2023 23:59:35 -0700 Subject: [PATCH] chore: remove junk files --- _webi/example_install_safe_copy.sh | 19 ------------------- _webi/webi.bat | 27 --------------------------- _webi/webi.ps1.bat | 1 - 3 files changed, 47 deletions(-) delete mode 100644 _webi/example_install_safe_copy.sh delete mode 100644 _webi/webi.bat delete mode 100644 _webi/webi.ps1.bat diff --git a/_webi/example_install_safe_copy.sh b/_webi/example_install_safe_copy.sh deleted file mode 100644 index 8fdcd0b..0000000 --- a/_webi/example_install_safe_copy.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/sh -set -e -set -u - -# For installing from the extracted package tmp directory -pkg_install() { - ( - cd "$WEBI_TMP" - - if command -v rsync 2> /dev/null | grep -q rsync; then - rsync -Krl ./xmpl*/ "$pkg_src/" 2> /dev/null - else - cp -Hr ./xmpl*/* "$pkg_src/" 2> /dev/null - cp -Hr ./xmpl*/.* "$pkg_src/" 2> /dev/null - fi - rm -rf ./xmpl* - - ) -} diff --git a/_webi/webi.bat b/_webi/webi.bat deleted file mode 100644 index 53f9863..0000000 --- a/_webi/webi.bat +++ /dev/null @@ -1,27 +0,0 @@ -@echo off -pushd "%userprofile%" || goto :error - IF NOT EXIST .local ( - mkdir .local || goto :error - ) - IF NOT EXIST .local\bin ( - mkdir .local\bin || goto :error - ) - IF NOT EXIST .local\opt ( - mkdir .local\opt || goto :error - ) - - echo Downloading and installing %1 - powershell $ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest https://webinstall.dev/packages/%1/install.ps1 -OutFile %1-webinstall.bat || goto :error - - rem TODO only add if it's not in there already - PATH .local\bin;%PATH% - - call %1-webinstall.bat || goto :error - del %1-webinstall.bat || goto :error -popd - -goto :EOF - -:error -echo Failed with error #%errorlevel%. -exit /b %errorlevel% diff --git a/_webi/webi.ps1.bat b/_webi/webi.ps1.bat deleted file mode 100644 index 9badacc..0000000 --- a/_webi/webi.ps1.bat +++ /dev/null @@ -1 +0,0 @@ -powershell -ExecutionPolicy Bypass .\.local\bin\webi-pwsh.ps1 %1