From d7a125619bb74b5db1e3530bae0fe8de2e0ae2c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C5=82awomir=20Nizio?= Date: Sat, 21 Feb 2015 19:38:42 +0100 Subject: [PATCH] [bin] add "--print" to bump_misc --- bin/bump_misc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/bump_misc b/bin/bump_misc index 7923dfdc..bff1e1d5 100755 --- a/bin/bump_misc +++ b/bin/bump_misc @@ -19,6 +19,11 @@ if [ "$1" = "--repo" ]; then shift; shift fi +if [ "$1" = "--print" ]; then + cmd="echo $cmd" + shift +fi + overlay=${overlay:-$default_overlay} what=$1 @@ -55,6 +60,7 @@ transmission|tra) *) echo "Excuse me, but I non capisco." >&2 echo "Use --repo to use different overlay (default: $default_overlay)." >&2 + echo "Use --print just to print what would be done." [ -n "$1" ] && echo "Run without any parameter for interactive use." >&2 exit 1 esac