From 32f6f8360684c0b583e613cf5727f0c102438bd2 Mon Sep 17 00:00:00 2001 From: Brendan Taylor Date: Sun, 13 Mar 2011 21:49:27 -0600 Subject: sh scripts: replace print with echo/printf we can safely use echo in many of the situations where 'print' is being used, and we can use printf directly in other places. --- examples/data/scripts/download.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'examples/data/scripts/download.sh') diff --git a/examples/data/scripts/download.sh b/examples/data/scripts/download.sh index 8b4761f..7753bd6 100755 --- a/examples/data/scripts/download.sh +++ b/examples/data/scripts/download.sh @@ -7,12 +7,11 @@ # if nothing is printed to stdout, the download will be cancelled. . "$UZBL_UTIL_DIR/uzbl-dir.sh" -. "$UZBL_UTIL_DIR/uzbl-util.sh" # the URL that is being downloaded uri="$1" -safe_uri="$( print "$uri" | sed -e 's/\W/-/g' )" +safe_uri="$( echo "$uri" | sed -e 's/\W/-/g' )" # a filename suggested by the server or based on the URL suggested_filename="${2:-$safe_uri}" @@ -25,4 +24,4 @@ content_type="$3" total_size="$4" # just save the file to the default directory with the suggested name -print "$UZBL_DOWNLOAD_DIR/$suggested_filename\n" +echo "$UZBL_DOWNLOAD_DIR/$suggested_filename" -- cgit v1.2.3