We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfc47ec commit 206ac44Copy full SHA for 206ac44
βgenerator.sh
@@ -5,7 +5,8 @@ table=table.txt
5
6
for shell in sh bash fish ksh
7
do
8
- if [ "$shell" = "bash" ]; then
+ case $shell in
9
+ "bash")
10
fn='function '
11
dot='.'
12
echo='echo'
@@ -14,7 +15,8 @@ do
14
15
endIf='fi'
16
brackets=
17
para='@'
- elif [ "$shell" = "ksh" ];then
18
+ ;;
19
+ "ksh")
20
21
dot=
22
echo='/bin/echo'
@@ -23,7 +25,8 @@ do
23
25
24
26
27
- elif [ "$shell" = "fish" ];then
28
29
+ "fish")
30
31
32
@@ -32,7 +35,8 @@ do
35
endIf='end'
33
36
34
37
para='argv'
- else
38
39
+ *)
40
fn=
41
42
@@ -41,7 +45,7 @@ do
45
46
brackets='()'
43
47
44
- fi
48
+ esac
49
50
newDist="$dist.$shell"
51
echo "#!/usr/bin/env $shell" > $newDist
0 commit comments