Skip to content

Commit

Permalink
Update maintenance scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
rbsheth committed Feb 28, 2022
1 parent d106e5a commit cb4acfd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion maintenance/get_package_sha1.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ PACKAGE_URL=$1
WGET_COMMAND=$("$SCRIPT_DIR/get_wget_command.sh")
SED_COMMAND=$("$SCRIPT_DIR/get_sed_command.sh")

$WGET_COMMAND $1 --quiet -O package.tar.gz
$WGET_COMMAND $PACKAGE_URL --quiet -O package.tar.gz
PACKAGE_SHA1=$(openssl sha1 package.tar.gz | $SED_COMMAND 's/^.* //')
rm package.tar.gz
echo "$PACKAGE_SHA1"
4 changes: 1 addition & 3 deletions maintenance/get_sed_command.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

if [[ "$OSTYPE" == "darwin"* ]]; then
SED_COMMAND=gsed
if command -v $SED_COMMAND > /dev/null 2>&1; then
echo "Found gsed"
else
if ! command -v $SED_COMMAND > /dev/null 2>&1; then
echo "GNU sed not installed. Try brew install gsed."
exit 1
fi
Expand Down
Empty file modified maintenance/get_wget_command.sh
100644 → 100755
Empty file.

0 comments on commit cb4acfd

Please sign in to comment.