diff options
| author | Jokler <jokler.contact@gmail.com> | 2019-05-22 17:38:58 +0200 |
|---|---|---|
| committer | Jokler <jokler.contact@gmail.com> | 2019-05-22 17:38:58 +0200 |
| commit | 0b0e59d9dda5571b69e3883b6a3ae356dbae828e (patch) | |
| tree | dc3dee94262a424d7567bb6385e15417630276e3 /scripts/current-term | |
| parent | ff207603f32d48594901b2f312c8c8b224d3171b (diff) | |
| download | dotfiles-0b0e59d9dda5571b69e3883b6a3ae356dbae828e.tar.gz dotfiles-0b0e59d9dda5571b69e3883b6a3ae356dbae828e.zip | |
Scripts: Make some scripts POSIX shell compliant
Diffstat (limited to 'scripts/current-term')
| -rwxr-xr-x | scripts/current-term | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/current-term b/scripts/current-term index 1917293..21f9383 100755 --- a/scripts/current-term +++ b/scripts/current-term @@ -1,18 +1,18 @@ -#!/bin/bash +#!/bin/sh set_class=0 -if [[ $1 == "--class" ]]; then +if [ "$1" = "--class" ]; then set_class=1 class=$2 shift shift fi -if [[ $set_class -eq 1 ]]; then +if [ $set_class -eq 1 ]; then #termite --name=$class $@ - alacritty --class $class $@ + alacritty --class "$class" "$@" else - termite $@ + termite "$@" fi # vim: expandtab sw=2 ts=2 |
