parent
8a1fe41825
commit
6e25b90915
@ -0,0 +1,18 @@
|
||||
# Roadmap
|
||||
|
||||
## Todo
|
||||
|
||||
- implement commands
|
||||
|
||||
## Packages
|
||||
|
||||
- https://github.com/fatih/color
|
||||
- https://github.com/manifoldco/promptui
|
||||
- https://github.com/AlecAivazis/survey
|
||||
|
||||
## To ask
|
||||
|
||||
- union types for options config
|
||||
- utility library
|
||||
- keys of map
|
||||
- includes array
|
@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
OUT_FILE=/usr/local/bin/autorestic
|
||||
|
||||
if [[ "$OSTYPE" == "linux-gnu" ]]; then
|
||||
TYPE=linux
|
||||
elif [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
TYPE=macos
|
||||
else
|
||||
echo "Unsupported OS"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
curl -s https://api.github.com/repos/cupcakearmy/autorestic/releases/latest \
|
||||
| grep "browser_download_url.*_${TYPE}" \
|
||||
| cut -d : -f 2,3 \
|
||||
| tr -d \" \
|
||||
| wget -O ${OUT_FILE} -i -
|
||||
chmod +x ${OUT_FILE}
|
||||
|
||||
autorestic install
|
||||
echo "Succefsully installed autorestic"
|
Loading…
Reference in new issue