From 68cc45a8ed9dbdf461b055bffbf06681b50d18bd Mon Sep 17 00:00:00 2001 From: Tslil Clingman Date: Wed, 15 Apr 2015 20:20:28 +0200 Subject: Less -> more, security --- ranpas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ranpas') 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 -- cgit v1.2.3