Skip to content
Permalink
Browse files

remove local js dependency + update year in copyright info

  • Loading branch information...
jcubic committed Jan 3, 2019
1 parent 9e19bdd commit abacab59efaa46c375f2ea1bc3a6d5b72c3f21dc
Showing with 9 additions and 3 deletions.
  1. +1 −1 LICENSE
  2. +1 −1 README.md
  3. +7 −1 jsh.php
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2017 Jakub Jankiewicz
Copyright (c) 2017-2019 Jakub Jankiewicz

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@@ -25,5 +25,5 @@ sqlite, mysql command with syntax highlight and tab completion

Released under [MIT](http://opensource.org/licenses/MIT) license

Copyright (c) 2017-2018 [Jakub Jankiewicz](https://jcubic.pl/jakub-jankiewicz)
Copyright (c) 2017-2019 [Jakub Jankiewicz](https://jcubic.pl/jakub-jankiewicz)

@@ -4,7 +4,7 @@
*
* https://github.com/jcubic/jsh.php
*
* Copyright (c) 2017-2018 Jakub Jankiewicz <https://jcubic.pl/me>
* Copyright (c) 2017-2019 Jakub Jankiewicz <https://jcubic.pl/me>
* Released under the MIT license
*/
define('VERSION', '0.2.1');
@@ -160,6 +160,12 @@ public function command($command, $path, $shell_fn) {
$command = escapeshellarg($pre . $command . $post);
$command = $this->unbuffer('/bin/bash -c ' . $command . ' 2>&1', $shell_fn);
$result = $this->$shell_fn($command);
/*
return array(
'output' => $command,
'cwd' => $this->path
);
*/
if (preg_match("%>/dev/null & echo $!$%", $command)) {
return array(
'output' => '[1] ' . $result,

0 comments on commit abacab5

Please sign in to comment.
You can’t perform that action at this time.