Skip to content

Commit

Permalink
Fixed shebang problem (cr/lf) introduced in the previous commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
rabchev committed May 7, 2014
1 parent 3d8502a commit 272b94e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
5 changes: 2 additions & 3 deletions bin/dependencies.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/*jslint plusplus: true, devel: true, nomen: true, node: true, vars: true, indent: 4, maxerr: 50 */
/*global */

"use strict";

Expand All @@ -9,8 +8,8 @@ if (process.getuid && process.setuid) {
exec = require("child_process").exec;
exec("./bin/libpam-dev-check.sh", function (err) {
if (!err) {
exec("npm install authenticate-pam", function (err) {
exec("npm install authenticate-pam", function () {

});
} else {
console.log(err);
Expand Down
17 changes: 7 additions & 10 deletions bin/run.js
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
#!/usr/bin/env node

/*jslint plusplus: true, devel: true, nomen: true, node: true, vars: true, indent: 4, maxerr: 50 */
/*global require, exports, module */

var connect = require("connect"),
util = require("util"),
commander = require("commander"),
var commander = require("commander"),
terminal = require("../"),
pkg = require("../package.json");

if (commander.options.length === 0) {
commander
.version(pkg.version)
.option("-p, --port <port>", "Cpecifies the TCP port for the HTTP server.")
.option("-s, --ssl", "Start HTTP server over secure socket layer.")
.option("-h, --shell <shell>", "Executes commands in the specified command shell. Example: --shell bash")
.option("-l, --login", "Require login to use the terminal. The process is executed with the logged user account. NOTE: this option works only for POSIX platforms and it requires libpam-dev package to be installed prior to installing web-terminal.")
.parse(process.argv);
.version(pkg.version)
.option("-p, --port <port>", "Cpecifies the TCP port for the HTTP server.")
.option("-s, --ssl", "Start HTTP server over secure socket layer.")
.option("-h, --shell <shell>", "Executes commands in the specified command shell. Example: --shell bash")
.option("-l, --login", "Require login to use the terminal. The process is executed with the logged user account. NOTE: this option works only for POSIX platforms and it requires libpam-dev package to be installed prior to installing web-terminal.")
.parse(process.argv);
}

if (commander.shell) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "web-terminal",
"description": "Web-Terminal is a terminal server that provides remote CLI via standard web browser and HTTP protocol.",
"version": "0.6.4",
"version": "0.6.5",
"author": "Boyan Rabchev <boyan@rabchev.com>",
"contributors": [
{ "name": "Boyan Rabchev", "email": "boyan@rabchev.com" }
Expand Down

0 comments on commit 272b94e

Please sign in to comment.