X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=functions.sh;h=520007eeed2477a1d85264711bbf2f4fe6af1ee5;hb=7034f689abd0368dc6eaa1440773d8f79d8fe98e;hp=85e9dd93848db98caf437e78206ceda6419a8625;hpb=971e83d17061d018822181d7ce7353f818b8fe7f;p=carnet-upgrade.git diff --git a/functions.sh b/functions.sh index 85e9dd9..520007e 100644 --- a/functions.sh +++ b/functions.sh @@ -191,6 +191,10 @@ cp_backup_conffile() { cp_check_and_sed() { [ "$CP_SCRIPT_DEBUG" ] && set -vx local s sedcmd grepret ret i + if [ -z "$3" ]; then + echo "Usage: cp_check_and_sed [file ...]" 2>&1 + return 1 + fi s="$1" shift sedcmd="$1"