Skip to content
Snippets Groups Projects
Select Git revision
  • 756418acf476c3d19f6b5b37ea35cc7805cd457f
  • master default protected
  • json-output
  • nostr
  • 48-error-base-58-requirement-is-violated
  • no-rename
  • hugo/tx-comments
  • poka/dev
  • hugo/dev
  • tuxmain/mail
  • 0.4.3-RC2
  • 0.4.3-RC1
  • 0.4.2
  • 0.4.1
  • 0.4.0
  • 0.3.0
  • 0.2.17
  • 0.2.16
  • 0.2.15
  • 0.2.14
  • 0.2.13
  • 0.2.12
  • 0.2.10
  • 0.2.9
  • 0.2.8
  • 0.2.7
  • 0.2.6
  • 0.2.5
  • 0.2.4
  • 0.2.3
30 results

install_gcli.scpt

Blame
  • install_gcli.scpt 781 B
    -- Ask user if they want to install gcli
    set userResponse to display dialog "Do you want to install gcli to /usr/local/bin?" buttons {"No", "Yes"} default button "Yes"
    
    if button returned of userResponse is "Yes" then
        -- Run shell script to move gcli with administrator privileges
        try
            do shell script "mv gcli.app/Contents/MacOS/gcli /usr/local/bin" with administrator privileges
            display dialog "gcli has been installed to /usr/local/bin and is now available in your PATH."
        on error errMsg number errorNumber
            if errorNumber is -128 then
                display dialog "Installation cancelled."
            else
                display dialog "An error occurred: " & errMsg
            end if
        end try
    else
        display dialog "Installation cancelled."
    end if