Skip to content

Instantly share code, notes, and snippets.

@earnhardt3rd
Created June 19, 2023 14:03
Show Gist options
  • Select an option

  • Save earnhardt3rd/ab2e8e85766f3d6372843defc5b5a2bd to your computer and use it in GitHub Desktop.

Select an option

Save earnhardt3rd/ab2e8e85766f3d6372843defc5b5a2bd to your computer and use it in GitHub Desktop.
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