File tree Expand file tree Collapse file tree 5 files changed +15
-15
lines changed
Expand file tree Collapse file tree 5 files changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -63,12 +63,12 @@ bash utils/build.sh
6363
6464# Update jsDelivr URLs for GitHub assets w/ commit hash
6565echo -e " ${BY} \nUpdating jsDelivr URLs for GitHub assets w/ commit hash...${NC} "
66- BUMP_HASH =$( git rev-parse HEAD)
66+ bump_hash =$( git rev-parse HEAD)
6767old_file=$( < dist/cli.min.js)
68- sed -i -E " s|(cdn\.jsdelivr\.net\/gh\/[^/]+\/[^@/\" ']+)[^/\" ']*|\1@$BUMP_HASH |g" dist/cli.min.js
68+ sed -i -E " s|(cdn\.jsdelivr\.net\/gh\/[^/]+\/[^@/\" ']+)[^/\" ']*|\1@$bump_hash |g" dist/cli.min.js
6969new_file=$( < dist/cli.min.js)
7070if [[ " $old_file " != " $new_file " ]]
71- then echo -e " ${BW} $BUMP_HASH ${NC} "
71+ then echo -e " ${BW} $bump_hash ${NC} "
7272 else echo " No jsDelivr URLs for GH assets found in built files."
7373fi
7474
Original file line number Diff line number Diff line change @@ -63,12 +63,12 @@ bash utils/build.sh
6363
6464# Update jsDelivr URLs for GitHub assets w/ commit hash
6565echo -e " ${BY} \nUpdating jsDelivr URLs for GitHub assets w/ commit hash...${NC} "
66- BUMP_HASH =$( git rev-parse HEAD)
66+ bump_hash =$( git rev-parse HEAD)
6767old_file=$( < dist/cli.min.js)
68- sed -i -E " s|(cdn\.jsdelivr\.net\/gh\/[^/]+\/[^@/\" ']+)[^/\" ']*|\1@$BUMP_HASH |g" dist/cli.min.js
68+ sed -i -E " s|(cdn\.jsdelivr\.net\/gh\/[^/]+\/[^@/\" ']+)[^/\" ']*|\1@$bump_hash |g" dist/cli.min.js
6969new_file=$( < dist/cli.min.js)
7070if [[ " $old_file " != " $new_file " ]]
71- then echo -e " ${BW} $BUMP_HASH ${NC} "
71+ then echo -e " ${BW} $bump_hash ${NC} "
7272 else echo " No jsDelivr URLs for GH assets found in built files."
7373fi
7474
Original file line number Diff line number Diff line change @@ -63,12 +63,12 @@ bash utils/build.sh
6363
6464# Update jsDelivr URLs for GitHub assets w/ commit hash
6565echo -e " ${BY} \nUpdating jsDelivr URLs for GitHub assets w/ commit hash...${NC} "
66- BUMP_HASH =$( git rev-parse HEAD)
66+ bump_hash =$( git rev-parse HEAD)
6767old_file=$( < dist/cli.min.js)
68- sed -i -E " s|(cdn\.jsdelivr\.net\/gh\/[^/]+\/[^@/\" ']+)[^/\" ']*|\1@$BUMP_HASH |g" dist/cli.min.js
68+ sed -i -E " s|(cdn\.jsdelivr\.net\/gh\/[^/]+\/[^@/\" ']+)[^/\" ']*|\1@$bump_hash |g" dist/cli.min.js
6969new_file=$( < dist/cli.min.js)
7070if [[ " $old_file " != " $new_file " ]]
71- then echo -e " ${BW} $BUMP_HASH ${NC} "
71+ then echo -e " ${BW} $bump_hash ${NC} "
7272 else echo " No jsDelivr URLs for GH assets found in built files."
7373fi
7474
Original file line number Diff line number Diff line change @@ -63,12 +63,12 @@ bash utils/build.sh
6363
6464# Update jsDelivr URLs for GitHub assets w/ commit hash
6565echo -e " ${BY} \nUpdating jsDelivr URLs for GitHub assets w/ commit hash...${NC} "
66- BUMP_HASH =$( git rev-parse HEAD)
66+ bump_hash =$( git rev-parse HEAD)
6767old_file=$( < dist/cli.min.js)
68- sed -i -E " s|(cdn\.jsdelivr\.net\/gh\/[^/]+\/[^@/\" ']+)[^/\" ']*|\1@$BUMP_HASH |g" dist/cli.min.js
68+ sed -i -E " s|(cdn\.jsdelivr\.net\/gh\/[^/]+\/[^@/\" ']+)[^/\" ']*|\1@$bump_hash |g" dist/cli.min.js
6969new_file=$( < dist/cli.min.js)
7070if [[ " $old_file " != " $new_file " ]]
71- then echo -e " ${BW} $BUMP_HASH ${NC} "
71+ then echo -e " ${BW} $bump_hash ${NC} "
7272 else echo " No jsDelivr URLs for GH assets found in built files."
7373fi
7474
Original file line number Diff line number Diff line change @@ -63,12 +63,12 @@ bash utils/build.sh
6363
6464# Update jsDelivr URLs for GitHub assets w/ commit hash
6565echo -e " ${BY} \nUpdating jsDelivr URLs for GitHub assets w/ commit hash...${NC} "
66- BUMP_HASH =$( git rev-parse HEAD)
66+ bump_hash =$( git rev-parse HEAD)
6767old_file=$( < dist/cli.min.js)
68- sed -i -E " s|(cdn\.jsdelivr\.net\/gh\/[^/]+\/[^@/\" ']+)[^/\" ']*|\1@$BUMP_HASH |g" dist/cli.min.js
68+ sed -i -E " s|(cdn\.jsdelivr\.net\/gh\/[^/]+\/[^@/\" ']+)[^/\" ']*|\1@$bump_hash |g" dist/cli.min.js
6969new_file=$( < dist/cli.min.js)
7070if [[ " $old_file " != " $new_file " ]]
71- then echo -e " ${BW} $BUMP_HASH ${NC} "
71+ then echo -e " ${BW} $bump_hash ${NC} "
7272 else echo " No jsDelivr URLs for GH assets found in built files."
7373fi
7474
You can’t perform that action at this time.
0 commit comments