( My shell is fish-shell )
╰─❯ bash -- --user <(curl -s "https://raw.githubusercontent.com/amber-lang/amber/master/setup/install.sh")
fish: Invalid redirection target:
bash -- --user <(curl -s "https://raw.githubusercontent.com/amber-lang/amber/master/setup/install.sh")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
╰─❯ bash -- --user (curl -s "https://raw.githubusercontent.com/amber-lang/amber/master/setup/install.sh"|psub)
bash: --user: No such file or directory
╰─❯ bash -- '--user <(curl -s "https://raw.githubusercontent.com/amber-lang/amber/master/setup/install.sh")'
bash: --user <(curl -s "https://raw.githubusercontent.com/amber-lang/amber/master/setup/install.sh"): No such file or directory
╰─❯ bash -- "--user <(curl -s \"https://raw.githubusercontent.com/amber-lang/amber/master/setup/install.sh\")"
bash: --user <(curl -s "https://raw.githubusercontent.com/amber-lang/amber/master/setup/install.sh"): No such file or directory
( Changed to bash )
╰─❯ bash
[a@a-macbookair exercises]$ bash -- --user <(curl -s "https://raw.githubusercontent.com/amber-lang/amber/master/setup/install.sh")
bash: --user: No such file or directory
[a@a-macbookair exercises]$ bash <(curl -s "https://raw.githubusercontent.com/amber-lang/amber/master/setup/install.sh")
Installing Amber... 🚀
chmod: cannot access '/opt/amber/amber': No such file or directory
Failed to give permissions to execute amber.
Please make sure that root user can access /opt/amber directory.
[a@a-macbookair exercises]$ sudo bash <(curl -s "https://raw.githubusercontent.com/amber-lang/amber/master/setup/install.sh")
bash: /dev/fd/63: No such file or directory
[a@a-macbookair exercises]$ sudo -s
[root@a-macbookair exercises]# bash <(curl -s "https://raw.githubusercontent.com/amber-lang/amber/master/setup/install.sh")
Amber already installed
It seems that Amber is already installed on your system. (/opt/amber)
If you want to reinstall Amber, uninstall it first.
(Find out more at https://docs.amber-lang.com/getting_started/installation#uninstallation)
[root@a-macbookair exercises]# amber
bash: amber: command not found...
^C
[root@a-macbookair exercises]# rm -rf /opt/amber/
[root@a-macbookair exercises]# bash <(curl -s "https://raw.githubusercontent.com/amber-lang/amber/master/setup/install.sh")
Installing Amber... 🚀
chmod: cannot access '/opt/amber/amber': No such file or directory
Failed to give permissions to execute amber.
Please make sure that root user can access /opt/amber directory.
[root@a-macbookair exercises]# ls -l /opt/
amber/ brave.com/ FreeTube/ vivaldi/
[root@a-macbookair exercises]# ls -l /opt/amber/
total 0
[root@a-macbookair exercises]# bash <(curl -s "https://raw.githubusercontent.com/amber-lang/amber/master/setup/install.sh")
Amber already installed
It seems that Amber is already installed on your system. (/opt/amber)
If you want to reinstall Amber, uninstall it first.
(Find out more at https://docs.amber-lang.com/getting_started/installation#uninstallation)
[root@a-macbookair exercises]# curl -s "https://raw.githubusercontent.com/Ph0enixKM/AmberNative/master/setup/uninstall.sh" | bash
rm: cannot remove '/usr/local/bin/amber': No such file or directory
Failed to remove Amber symlink from /usr/local/bin
Make sure root has the correct permissions to access this directory
https://gist.github.com/dontdieych/116af6dcb32bc93846ebb72ab9f3669e