From b61f3797eb67ea89217da3ab4be7baa759fbe410 Mon Sep 17 00:00:00 2001 From: Skydust Date: Sun, 11 Jun 2023 21:11:02 +0200 Subject: [PATCH] Test 2 --- Formula/clearscript.rb | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/Formula/clearscript.rb b/Formula/clearscript.rb index 78d10ef..c1021d2 100644 --- a/Formula/clearscript.rb +++ b/Formula/clearscript.rb @@ -1,23 +1,16 @@ class Clearscript < Formula desc "A script to clear multiples caches and useless macos files" homepage "https://gitea.skydust.fr/Skydust/MacOS-Clear-script" - version `git --git-dir=#{Formula["clearscript"].prefix}/.git rev-parse --short HEAD`.chomp - # Specify the URL of the Git repository url "https://gitea.skydust.fr/Skydust/MacOS-Clear-script.git" # Specify the branch or tag to use for the installation head "https://gitea.skydust.fr/Skydust/MacOS-Clear-script.git", branch: "master" + version "1.1.1" def install - # Clone the repository - system "git", "clone", "#{build.head}", "clear-script" - - # Move to the repository directory - cd "clear-script" do - mv "Clear.sh", "clearscript" - # Install the script to the appropriate location - bin.install "clearscript" - end + mv "Clear.sh", "clearscript" + # Install the script to the appropriate location + bin.install "clearscript" end end \ No newline at end of file