Commit Graph

15 Commits

Author SHA1 Message Date
Wez Furlong
8a773856de
Improve error handling in install.sh (#404)
Prior to this change, running the example from the docs without root privs produces this misleading/confusing output that claims that the software was installed when it wasn't:

```console
$ wget -qO - https://raw.githubusercontent.com/cupcakearmy/autorestic/master/install.sh | bash
linux
amd64
/usr/local/bin/autorestic.bz2: Permission denied
bzip2: Can't open input file /usr/local/bin/autorestic.bz2: No such file or directory.
chmod: cannot access '/usr/local/bin/autorestic': No such file or directory
bash: line 49: autorestic: command not found
Successfully installed autorestic
```

With this change, the errors stop the script much earlier and produce this output instead:

```
linux
amd64
/usr/local/bin/autorestic.bz2: Permission denied
```
2024-10-21 16:06:49 +02:00
guest20
dd01e97cf3
install.sh: FreeBSD amd64 (#385) 2024-08-28 17:19:13 +02:00
Šimon Woidig
d0c4a32879
Update install.sh (#246)
Add check for bzip2 command existance
2022-10-18 16:17:35 +02:00
11d1da7468
use wget 2021-10-30 14:38:53 +02:00
77d47cc697
add arm in install script 2021-05-25 22:57:42 +02:00
33319a00ef
add arm for darwin 2021-04-26 13:15:58 +02:00
Fuzzy
2ba767c8c3
Fix typo in install script
Fix typo
2021-04-21 14:32:11 -04:00
7b7eec2dba
install script 2021-04-17 15:57:15 +02:00
6e25b90915
unlock on error and named arrays for config 2021-04-11 17:02:34 +02:00
03cbbfd91c
go rewrite 2021-04-09 01:55:10 +02:00
ff648f0017
don't make autorestic return 1 on call 2021-01-24 10:27:37 +01:00
cupcakearmy
652158d1ed use bash 2019-11-27 19:30:01 +01:00
cupcakearmy
793ab1c6fe automagically install restic too 2019-06-21 12:27:59 +02:00
cupcakearmy
24a364ce08 install shell script 2019-06-21 12:22:39 +02:00
cupcakearmy
d59362e82c install script 2019-06-20 23:54:23 +02:00