16 lines
761 B
Bash
16 lines
761 B
Bash
#!/bin/bash
|
|
|
|
CURL=$(command -v curl)
|
|
WGET=$(command -v wget)
|
|
if [[ -n $CURL ]]; then
|
|
$CURL -Os "https://git.72.lv/eriks/bashrc/raw/branch/master/.bash_profile"
|
|
$CURL -Os "https://git.72.lv/eriks/bashrc/raw/branch/master/.bash_logout"
|
|
$CURL -Os "https://git.72.lv/eriks/bashrc/raw/branch/master/.bash_aliases"
|
|
$CURL -Os "https://git.72.lv/eriks/bashrc/raw/branch/master/.bashrc"
|
|
elif [[ -n $WGET ]]; then
|
|
$WGET "https://git.72.lv/eriks/bashrc/raw/branch/master/.bash_profile" -O .bash_profile
|
|
$WGET "https://git.72.lv/eriks/bashrc/raw/branch/master/.bash_logout" -O .bash_logout
|
|
$WGET "https://git.72.lv/eriks/bashrc/raw/branch/master/.bash_aliases" -O .bash_aliases
|
|
$WGET "https://git.72.lv/eriks/bashrc/raw/branch/master/.bashrc" -O .bashrc
|
|
fi
|