Skip to content

Instantly share code, notes, and snippets.

@reneeb
Last active November 15, 2018 21:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reneeb/65cd1202ada86633a7f3f19e8e3953b5 to your computer and use it in GitHub Desktop.
Save reneeb/65cd1202ada86633a7f3f19e8e3953b5 to your computer and use it in GitHub Desktop.
perl -MPath::Tiny=path -E 'my $this = path(".")->absolute; for my $path ( $this->children ) { next if $path->is_file; chdir $path->stringify; say "$path"; say qx{git status}; chdir $this->stringify }'
function enmod() {
cd /opt/otrs
perl /home/otrsvm/module-tools/bin/otrs.ModuleTools.pl Module::Package::Install /home/otrsvm/OTRS/$1 /opt/otrs --verbose
}
function dismod() {
cd /opt/otrs
perl /home/otrsvm/module-tools/bin/otrs.ModuleTools.pl Module::Package::Uninstall /home/otrsvm/OTRS/$1 /opt/otrs --verbose
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment