File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
content/docs/buildpack-author-guide/create-buildpack Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ Note that there may be times when you would want to clean the cached layer from
153
153
``` bash
154
154
# Compares previous Gemfile.lock checksum to the current Gemfile.lock
155
155
bundlerlayer=" $layersdir /bundler"
156
- local_bundler_checksum=$(( sha256 sum Gemfile.lock >/ dev / null 2 >& 1 || echo 'DOES_NOT_EXIST') | cut - d ' ' - f 1 )
156
+ local_bundler_checksum=$(( sha256 sum Gemfile.lock || echo 'DOES_NOT_EXIST') | cut - d ' ' - f 1 )
157
157
remote_bundler_checksum=$(cat "$layersdir /bundler.toml" | yj -t | jq -r .metadata.checksum 2 >/dev/null || echo 'DOES_NOT_EXIST')
158
158
159
159
if [[ -f Gemfile.lock && $local_bundler_checksum == $remote_bundler_checksum ]] ; then
@@ -214,7 +214,7 @@ gem install bundler --no-ri --no-rdoc
214
214
# 7 . INSTALL GEMS
215
215
# Compares previous Gemfile.lock checksum to the current Gemfile.lock
216
216
bundlerlayer="$layersdir /bundler"
217
- local_bundler_checksum=$((sha256 sum Gemfile.lock >/dev/null 2 >& 1 || echo 'DOES_NOT_EXIST') | cut -d ' ' -f 1 )
217
+ local_bundler_checksum=$((sha256 sum Gemfile.lock || echo 'DOES_NOT_EXIST') | cut -d ' ' -f 1 )
218
218
remote_bundler_checksum=$(cat "$layersdir /bundler.toml" | yj -t | jq -r .metadata.checksum 2 >/dev/null || echo 'DOES_NOT_EXIST')
219
219
220
220
if [[ -f Gemfile.lock && $local_bundler_checksum == $remote_bundler_checksum ]] ; then
You can’t perform that action at this time.
0 commit comments