From d75b4b310e0e9524be81b2ef828ad25c535feaac Mon Sep 17 00:00:00 2001 From: suman chapai Date: Fri, 22 Mar 2024 12:44:08 +0545 Subject: [PATCH] chore: update installation script and docs --- README.md | 10 +++++----- scripts/install.txt | 1 - 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index e7d8373..0a96a3b 100644 --- a/README.md +++ b/README.md @@ -5,13 +5,13 @@ To convert your birthday on 1999-10-29 AD to nepali, run\ ## Installing / Updating `ad2bs` -### For macOS/Linux +### If you have go installed. + +Have go >= 1.21 installed. Clone the repo, then run `go install .` + +### If you don't have go installed, for macOS/Linux: ```sh rm -f `which ad2bs` curl -s https://raw.githubusercontent.com/opensource-nepal/ad2bs/main/scripts/install.txt | sh ``` - -### For Windows - -Have go >= 1.21 installed. Clone the repo, then run `go install .` diff --git a/scripts/install.txt b/scripts/install.txt index 7c01795..16a5cb7 100644 --- a/scripts/install.txt +++ b/scripts/install.txt @@ -7,7 +7,6 @@ add_usr_local_bin_to_path() { echo "Either provide password for superuser permission to append to /etc/paths." echo "Or press at this point and add it to path yourself\n" echo $TO_ADD | sudo tee -a /etc/paths - LINE_TO_ADD="PATH=\$PATH:$TO_ADD" >> ~/.zshrc } install_in_usr_local() {