-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
11 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,14 +20,15 @@ ssh -q [email protected] curl -o signed.zip -F file=@unsi | |
# copy signed app back from server | ||
scp [email protected]:./signed.zip ./signed.zip | ||
|
||
cat_var=$(cat signed.zip) | ||
echo "cat: $cat_var" | ||
|
||
du_var=$(du -h signed.zip) | ||
echo "du: $du_var" | ||
|
||
stat_var=$(stat signed.zip) | ||
echo "stat: $stat_var" | ||
# check for size | ||
actualSize=$(stat -f%z signed.zip) | ||
|
||
# file is too small, it's likely an error so show it | ||
if [ $actualSize -lt 40000000 ]; then | ||
echo "signed.zip is just $actualSize bytes large!" | ||
echo "" | ||
cat signed.zip | ||
fi | ||
|
||
# unzip app | ||
unzip -qq signed.zip | ||
|