diff options
| author | Tslil Clingman <hiato1@gmail.com> | 2015-04-15 20:20:28 +0200 |
|---|---|---|
| committer | Tslil Clingman <hiato1@gmail.com> | 2015-04-15 20:20:28 +0200 |
| commit | 68cc45a8ed9dbdf461b055bffbf06681b50d18bd (patch) | |
| tree | 5422533336d3717eb1624ea8d7f5afad449db8f9 | |
| parent | 9d755293fbd9155108a70986d140ca061442b4a5 (diff) | |
Less -> more, security
| -rwxr-xr-x | ranpas | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ # Read random pastes from pastie.org ;) -#!/usr/bin/env bash +#!/usr/bin/env sh echo Fetching paste list ... lst=`wget pastie.org/pastes -q -O - | grep "id='paste" | head -n 1 | sed "s/.*id='paste_\([0-9]*\)'.*/\1/"` @@ -15,7 +15,7 @@ while :; do if [ "$?" = "0" ]; then echo Paste $rnd does not exist. else - less /tmp/paste-$rnd + more /tmp/paste-$rnd echo -n Save?\ read r [ "$r" = "y" ] && echo Saving as paste $rnd in $HOME && cp /tmp/paste-$rnd $HOME |
