From: PHO Date: Thu, 19 Jan 2012 03:42:45 +0000 (+0900) Subject: --force should proceed the installation even when the target is not found. X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=stowinstall.git;a=commitdiff_plain;h=01acc553d21acbe6214b939f3c233bc28e4b5ea7 --force should proceed the installation even when the target is not found. --- 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) {