Fixed the tap

This commit is contained in:
2023-06-11 20:51:48 +02:00
parent 1567fd4b31
commit 0a6a5cb377

View File

@@ -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