style: format (alejandra)

This commit is contained in:
zerosummed
2025-02-14 21:06:51 +03:00
parent 70021da132
commit e1c484b1c0
14 changed files with 363 additions and 341 deletions

View File

@@ -1,12 +1,11 @@
{ pkgs, ... }:
{pkgs, ...}:
pkgs.writeShellScriptBin "unpack" ''
#!/usr/bin/env sh
set -e
# Determine the Git repository root or default to current directory
GIT_ROOT="$(git rev-parse --show-toplevel 2>/dev/null || echo .)"
SILENT=false
AUTO_YES=false
ZIPFILE=
@@ -16,7 +15,7 @@ pkgs.writeShellScriptBin "unpack" ''
# Check if the user is inside the 'web' directory or any of its subdirectories
RELATIVE_PATH="$(realpath --relative-to="$GIT_ROOT" "$ORIGINAL_DIR")"
IN_WEB=false
if [ "$RELATIVE_PATH" = "web" ] || echo "$RELATIVE_PATH" | grep -qE '^web(/|$)'; then
IN_WEB=true