From 754e1c7c0cd4a13a5dfb96ac009a2bb53fd51318 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20HALIMI?= Date: Tue, 8 Mar 2011 23:21:23 +0100 Subject: [PATCH] Fix role script editor crashes with dash (Closes: #605203) --- roles/editor | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/roles/editor b/roles/editor index 67ada89..97c13af 100755 --- a/roles/editor +++ b/roles/editor @@ -61,8 +61,7 @@ for i in `find ${source} -name '*.sed' -print`; do # # Get the name of the file, minus the source prefix # - sourcelen=${#source} - file=/${i:$sourcelen} + file=${i#$source} # # Strip the .sed suffix