termstandard / colors

Color standards for terminal emulators
The Unlicense
1.1k stars 44 forks source link

add commands to run test code #50

Closed CyrusYip closed 1 year ago

kurahaupo commented 2 years ago

With my security hat on, I have significant misgivings about telling people they should simply trust whatever curl downloads without inspecting it first.

# make a sandbox
mkdir tmp$$
cd tmp$$
# download it
wget https://doma.in/path/to/somefile.bash
# read it
cat somefile.bash
# if you're sure that it won't drown your goldfish, go ahead and run it
bash somefile.bash
CyrusYip commented 1 year ago

I agree that people should not run scripts without inspecting them.

How about this pull request https://github.com/termstandard/colors/pull/51 ?