From b754d49861ab9855c9295c78d513d3f7e58d322c Mon Sep 17 00:00:00 2001 From: "Mariano Z." Date: Wed, 4 Jun 2025 15:57:01 -0300 Subject: [PATCH] dev: automated commit - 2025-06-04 15:56:59 --- main.go | 8 +++++--- runs/aur | 34 ++++++++++++++++++++++++++++++++++ runs/{limine.sh => limine} | 0 3 files changed, 39 insertions(+), 3 deletions(-) create mode 100755 runs/aur rename runs/{limine.sh => limine} (100%) diff --git a/main.go b/main.go index ad4d13f..418cb2a 100644 --- a/main.go +++ b/main.go @@ -361,7 +361,11 @@ func executeScript(script Script, args []string, verbose bool) error { } func createNewScript(scriptName string) error { - if err := os.MkdirAll(config.RunsDir, 0o755); err != nil { + scriptPath := filepath.Join(config.RunsDir, scriptName) + + dirPath := filepath.Dir(scriptPath) + + if err := os.MkdirAll(dirPath, 0o755); err != nil { return err } @@ -369,8 +373,6 @@ func createNewScript(scriptName string) error { scriptName += ".sh" } - scriptPath := filepath.Join(config.RunsDir, scriptName) - if _, err := os.Stat(scriptPath); err == nil { return fmt.Errorf("script %s already exists", scriptName) } diff --git a/runs/aur b/runs/aur new file mode 100755 index 0000000..9805ee6 --- /dev/null +++ b/runs/aur @@ -0,0 +1,34 @@ +#!/usr/bin/env bash +# NAME: aur script + +set -euo pipefail + +echo "Running aur.sh script..." + +paru -S --needed --noconfirm adwaita-dark \ + aws-session-manager-plugin \ + bottles \ + bruno-bin \ + davmail \ + dmg2img \ + ebgaramond-otf \ + insomnia-bin \ + kubefwd-bin \ + mpvpaper \ + ngrok \ + openvpn3-git \ + otf-font-awesome-5 \ + postman-bin \ + rofi-lbonn-wayland-git \ + rose-pine-gtk-theme \ + slack-desktop \ + soapui \ + sublime-merge \ + swayfx-git \ + teams-for-linux-bin \ + ttf-font-awesome-5 \ + ttf-ms-win11-auto \ + watchman-bin \ + yubico-authenticator-bin + +echo "✅ aur completed successfully" diff --git a/runs/limine.sh b/runs/limine similarity index 100% rename from runs/limine.sh rename to runs/limine