Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
/*! For license information please see bundle.js.LICENSE.txt */
#!/bin/sh
# to put in .git/hooks/pre-commit with execution rights
set -eu
if ! cargo fmt -- --check
then
echo "There are some code style issues."
echo "Run cargo fmt first."
exit 1
try {
$FAIKERS_PATH = "$Env:USERPROFILE\AppData\Local\Microsoft\WindowsApps"
New-Item -type directory -path "$FAIKERS_PATH" -Force | Out-Null
$client = New-Object System.Net.WebClient
$client.DownloadFile("https://github.com/Faikers/cli-releases/releases/latest/download/faikers-cli-x86_64-windows.zip", "$FAIKERS_PATH\faikers-cli.zip")
Expand-Archive "$FAIKERS_PATH\faikers-cli.zip" "$FAIKERS_PATH" -Force
Remove-Item "$FAIKERS_PATH\faikers-cli.zip"
echo "The Faikers CLI is installed!"
} catch {
echo "An error occurred during the installation process"
@TheoOiry
TheoOiry / install.sh
Last active November 17, 2022 10:46
Faikers CLI install script
#!/bin/sh
# From https://get.pnpm.io/install.sh
abort() {
printf "%s\n" "$@"
exit 1
}
validate_url() {
local url="$1"