summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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