]> gitweb @ CieloNegro.org - stowinstall.git/commitdiff
--force should proceed the installation even when the target is not found.
authorPHO <pho@cielonegro.org>
Thu, 19 Jan 2012 03:42:45 +0000 (12:42 +0900)
committerPHO <pho@cielonegro.org>
Thu, 19 Jan 2012 03:42:45 +0000 (12:42 +0900)
stowinstall

index 72bde3195507e737a06e44c2392b62b54ae6c62f..7e327be9b8a976e3d23d025f6abba7b3ed7534b6 100755 (executable)
@@ -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) {