From 0a6a5cb37762be53959b50c0e0a796372aaa3c90 Mon Sep 17 00:00:00 2001 From: Skydust Date: Sun, 11 Jun 2023 20:51:48 +0200 Subject: [PATCH] Fixed the tap --- Formula/{ClearScript.rb => clearscript.rb} | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) rename Formula/{ClearScript.rb => clearscript.rb} (81%) diff --git a/Formula/ClearScript.rb b/Formula/clearscript.rb similarity index 81% rename from Formula/ClearScript.rb rename to Formula/clearscript.rb index 6115df5..78d10ef 100644 --- a/Formula/ClearScript.rb +++ b/Formula/clearscript.rb @@ -1,11 +1,12 @@ 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" + head "https://gitea.skydust.fr/Skydust/MacOS-Clear-script.git", branch: "master" def install @@ -14,7 +15,7 @@ class Clearscript < Formula # Move to the repository directory cd "clear-script" do - mv "Clear.sh", "clearscript" + mv "Clear.sh", "clearscript" # Install the script to the appropriate location bin.install "clearscript" end