From 01acc553d21acbe6214b939f3c233bc28e4b5ea7 Mon Sep 17 00:00:00 2001 From: PHO Date: Thu, 19 Jan 2012 12:42:45 +0900 Subject: [PATCH] --force should proceed the installation even when the target is not found. --- stowinstall | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/stowinstall b/stowinstall index 72bde31..7e327be 100755 --- a/stowinstall +++ b/stowinstall @@ -105,7 +105,12 @@ if ($target_install) { print "stowinstall: found target $opt_target.\n"; } else { - die "stowinstall: $opt_target target not found; this $opt_file seems not to support $opt_target!\n"; + if ($opt_force) { + print "stowinstall: $opt_target target not found, but proceeding anyway...\n"; + } + else { + die "stowinstall: $opt_target target not found; this $opt_file seems not to support $opt_target!\n"; + } } if (!-d $stowdir) { -- 2.40.0