Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script file location? #151

Open
tonypartridge opened this issue Sep 21, 2020 · 4 comments
Open

Script file location? #151

tonypartridge opened this issue Sep 21, 2020 · 4 comments

Comments

@tonypartridge
Copy link

Hi Guys,

Where is the script.deb.sh file located for a PR?

I want to add:

  if [ "$os" = "Zorin" ]; then
	os="Ubuntu";
  fi

after


      else
        dist=`cut --delimiter='.' -f1 /etc/debian_version`
      fi

    else
      unknown_os
    fi
  fi

As a condition is all nice simple mapping :-)

@tonypartridge tonypartridge changed the title Repo doesn't exist? Script file location?@ Sep 21, 2020
@tonypartridge tonypartridge changed the title Script file location?@ Script file location? Sep 21, 2020
@justjackstuff
Copy link

justjackstuff commented Sep 24, 2020

download the file at: https://packagecloud.io/install/repositories/gyazo/gyazo-for-linux/script.deb.sh
goto file location: cd filepath
and run: sudo os=ubuntu dist=trusty ./script.deb.sh
then: sudo apt-get install gyazo

@pastak
Copy link
Member

pastak commented Sep 30, 2020

@tonypartridge Thanks for your issue but script.deb.sh is provided by packagecloud.io. You can detect os and version via an environment variable, this is an example:

os=ubuntu dist=`cut --delimiter='.' -f1 /etc/debian_version` curl -s https://packagecloud.io/install/repositories/gyazo/gyazo-for-linux/script.deb.sh | sudo bash

@tonypartridge
Copy link
Author

You sure can, but for newer users would it not make more sense to pre-set them where possible? or detect the underlying OS opposed to OS Variable

@pastak
Copy link
Member

pastak commented Oct 5, 2020

Pull Request to wrap install script adding this behavior (detecting OS) are welcome 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants