HEX
Server: Apache/2.4.41 (FreeBSD) OpenSSL/1.0.2s mod_fcgid/2.3.9
System: FreeBSD salazo 12.0-RELEASE-p1303-ZFS hostBSD 12.0-RELEASE-p1303-ZFS DMR amd64
User: admin (1000)
PHP: 7.4.3
Disabled: NONE
Upload Files
File: /usr/ports/shells/psh/files/patch-postinstall.pl
--- postinstall.pl.orig	2007-07-06 00:42:01.000000000 -0300
+++ postinstall.pl	2013-10-23 21:34:44.000000000 -0200
@@ -1,19 +1,9 @@
 
-if ($^O eq 'MSWin32') {
-	mkdir("/psh");
-	system("xcopy share\\themes \\psh /Y");
-	system("xcopy share\\complete \\psh /Y");
-} else {
 	my $where;
 
-	if( -w '/') {
-		$where= $ARGV[0]||$ARGV[1]||'/usr/local';
-	} else {
-		$where ='~/.psh';
-	}
+	$where= $ARGV[0]||$ARGV[1]||'/usr/local';
 	print "Installing share files to $where/share/psh\n";
 	system("mkdir -p $where/share/psh");
 	system("cp -r share/themes $where/share/psh");
 	system("cp -r share/complete $where/share/psh");
-}