Skip to content

Commit 199784f

Browse files
committed
travisify.sh: eliminate bashism
1 parent f1d45ee commit 199784f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

travisify.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,10 @@ EOL
161161
if [ -f "$varsFile" ]
162162
then
163163
while read p; do
164-
test "${p:0:1}" = "#" && continue
164+
# Skip comments. (Cannot use ${p:0:1} because it's bash-specific.)
165+
case "$p" in
166+
'#'*) continue;;
167+
esac
165168
info "Encrypting ${p%%=*}"
166169
echo yes | $EXEC travis encrypt "$p" --add env.global
167170
done <"$varsFile"

0 commit comments

Comments
 (0)