Add disclaimer about curl-pipe safety
This commit is contained in:
parent
63836c5e40
commit
d8d13ce47e
1 changed files with 19 additions and 5 deletions
24
bootstrap
24
bootstrap
|
@ -1,10 +1,24 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# envoke with:
|
#
|
||||||
# curl -fsSL 'https://tinyurl.com/yadm-bootstrap' | bash [-s -- REPO_URL [YADM_RELEASE]]
|
# This script can be "curl-piped" into bash to bootstrap a dotfiles repo when
|
||||||
|
# yadm is not locally installed. Read below for instructions.
|
||||||
# or
|
#
|
||||||
|
# DISCLAIMER: In general, I would advise against piping someone's code directly
|
||||||
|
# from the Internet into an interpreter (like Bash). You should
|
||||||
|
# probably review any code like this prior to executing it. I leave
|
||||||
|
# it to you to decide if this is risky behavior or not. The main
|
||||||
|
# reason this script exists is because I find it to be a pragmatic
|
||||||
|
# way to bootstrap my dotfiles, and install yadm in one step
|
||||||
|
# (allowing the yadm project to be a submodule of my dotfiles
|
||||||
|
# repo).
|
||||||
|
#
|
||||||
|
# Invoke with:
|
||||||
|
#
|
||||||
|
# curl -fsSL 'https://tinyurl.com/yadm-bootstrap' | bash
|
||||||
|
#
|
||||||
|
# OR
|
||||||
|
#
|
||||||
# curl -fsSL 'https://github.com/TheLocehiliosan/yadm/raw/master/bootstrap' | bash [-s -- REPO_URL [YADM_RELEASE]]
|
# curl -fsSL 'https://github.com/TheLocehiliosan/yadm/raw/master/bootstrap' | bash [-s -- REPO_URL [YADM_RELEASE]]
|
||||||
|
|
||||||
YADM_REPO="https://github.com/TheLocehiliosan/yadm"
|
YADM_REPO="https://github.com/TheLocehiliosan/yadm"
|
||||||
|
|
Loading…
Reference in a new issue