AppImage / AppImage/appimage.github.io

Avoid a certain class of potential fails in Shell scripts

オープン
#267 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Shell
スター
374
フォーク
769
平均マージ
4日 10時間
マージ済み PR(30日)
8

説明

https://github.com/AppImage/appimage.github.io/blob/7c9d05f632ac1cfd9e128ab7c6be31ffa6c91e73/code/worker.sh#L97

Re-writing this line as

if [ x$TYPE == x2 ] ; then

avoids Travis error messages like *"code/worker.sh: line 97: [: -eq: unary operator expected"* in case $TYPE is empty.

Same is true for https://github.com/AppImage/appimage.github.io/blob/7c9d05f632ac1cfd9e128ab7c6be31ffa6c91e73/code/worker.sh#L118

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。