Skip to content

Commit

Permalink
posix shell shebang (no bashism) (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaudv6 authored Sep 26, 2022
1 parent c8e63dc commit 19d5684
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions vipe.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/sh

#
# vipe(1) - Pipe in and out of $EDITOR
Expand All @@ -11,17 +11,17 @@
# $ echo foo | vipe | gist
# $ vipe | gist
#
# This is a lightweight bash only version. For the original impementation in
# This is a lightweight shell only version. For the original impementation in
# python, check https://github.com/madx/moreutils/blob/master/vipe
#

# version

VERSION="0.1.0"
VERSION="0.1.1"

# usage

if [ ${1} ]; then
if [ "${1}" ]; then
case "${1}" in
"-h")
echo "usage: vipe [-hV]"
Expand All @@ -32,7 +32,7 @@ if [ ${1} ]; then
*)
echo "unknown option: \"${1}\""
echo "usage: vipe [-hV]"
exit 1
exit 1
esac
fi

Expand Down

0 comments on commit 19d5684

Please sign in to comment.