summaryrefslogtreecommitdiff
path: root/ranpas
diff options
context:
space:
mode:
authorTslil Clingman <hiato1@gmail.com>2015-04-15 20:20:28 +0200
committerTslil Clingman <hiato1@gmail.com>2015-04-15 20:20:28 +0200
commit68cc45a8ed9dbdf461b055bffbf06681b50d18bd (patch)
tree5422533336d3717eb1624ea8d7f5afad449db8f9 /ranpas
parent9d755293fbd9155108a70986d140ca061442b4a5 (diff)
Less -> more, security
Diffstat (limited to 'ranpas')
-rwxr-xr-xranpas4
1 files changed, 2 insertions, 2 deletions
diff --git a/ranpas b/ranpas
index 326357d..ac3c812 100755
--- a/ranpas
+++ b/ranpas
@@ -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