summaryrefslogtreecommitdiff
path: root/pbs.in
diff options
context:
space:
mode:
Diffstat (limited to 'pbs.in')
-rwxr-xr-xpbs.in22
1 files changed, 7 insertions, 15 deletions
diff --git a/pbs.in b/pbs.in
index bf7cc27..2c977b7 100755
--- a/pbs.in
+++ b/pbs.in
@@ -1,21 +1,13 @@
#!/bin/bash
-if [[ -z PBS_PATH ]]; then
+if [[ -z $PBS_PATH ]]; then
export PBS_PATH=@pbs-bindir@
fi
-if [[ -z "$pbs_cmd" ]]; then
- export pbs_cmd=$0
- export pbs_short=${pbs_cmd##*/}
- export PATH="$PBS_PATH:$PATH"
-fi
-
-main() {
- if [[ $# < 1 ]]; then
- pbs-help
- return 1
- fi
- pbs-"$@"
-}
+export PATH="$PBS_PATH:$PATH"
-main "$@"
+if [[ $# < 1 ]]; then
+ pbs-help
+ return 1
+fi
+pbs-"$@"