]> gitweb @ CieloNegro.org - stowinstall.git/blobdiff - stowinstall
Change the interpreter path
[stowinstall.git] / stowinstall
index 72bde3195507e737a06e44c2392b62b54ae6c62f..600f07bf17712798c78b05f15e30e093d7197d01 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 # -*- cperl -*-
 use strict;
 use warnings;
@@ -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) {