Created
June 19, 2023 14:03
-
-
Save earnhardt3rd/ab2e8e85766f3d6372843defc5b5a2bd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'getopts.pl'; | |
| Getopts('m:d:t'); | |
| my $MODE = uc($opt_m) || ""; | |
| my $DEBUG = $opt_d || 0; | |
| if (defined $opt_t) { my %TEST = &_RMBIN();} | |
| 1; | |
| sub _RMBIN { | |
| my $binFile = $_[0]; | |
| $binFile =~ s/-_-.*//g; | |
| $binFile = $UBIN . $SLASH . $binFile; | |
| if (-f $binFile) { | |
| my $xRmBin = $OS_TOOLS{"rm"} . " \"$binFile\""; | |
| my $xRmBinX = `$xRmBin`; | |
| print " UBIN FILE REMOVED!\n"; | |
| } else { | |
| print " UBIN FILE NOT FOUND!\n"; | |
| print " $binFile\n"; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment