summaryrefslogtreecommitdiff
path: root/emacs-helm.sh
diff options
context:
space:
mode:
authorPierre Neidhardt <ambrevar@gmail.com>2017-09-11 21:06:36 +0100
committerPierre Neidhardt <ambrevar@gmail.com>2017-09-11 21:06:36 +0100
commit171a2146af7bcd52b276e50db45f0f3da23ac168 (patch)
tree2db2d37c94ba0b00d2cd51809b36357009d1f9c8 /emacs-helm.sh
parentcb59e5d4c86e05eaefd56a746b26adffdfc280f0 (diff)
emacs-helm.sh: Switch to Bourne Shell (sh)
There is no need for Bash here, really.
Diffstat (limited to 'emacs-helm.sh')
-rwxr-xr-xemacs-helm.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/emacs-helm.sh b/emacs-helm.sh
index 06e6dd69..be1825db 100755
--- a/emacs-helm.sh
+++ b/emacs-helm.sh
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
## Copyright (C) 2012 ~ 2017 Thierry Volpiatto <thierry.volpiatto@gmail.com>
@@ -22,8 +22,8 @@
# Useful to start quickly an emacs -Q with helm.
# Run it from this directory or symlink it somewhere in your PATH.
-# If TEMP env var exists use it otherwise declare it.
-test -z "$TEMP" && declare TEMP="/tmp"
+# If TEMP env var exists, use it, otherwise declare it.
+test -z "$TEMP" && TEMP="/tmp"
CONF_FILE="$TEMP/helm-cfg.el"
EMACS=emacs
@@ -31,7 +31,7 @@ EMACS=emacs
case $1 in
-P)
shift 1
- declare EMACS=$1
+ EMACS=$1
shift 1
;;
-h)