pocket-updater-utility: When taking automated arguments, don't require user interaction

pocket_updater -u should not require the user to press Enter to exit.

Since we’re bypassing the prompts and updating, when we reach the end, do not pause and require the user to press Enter after printing “we did it, come again soon”. Just exit.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (15 by maintainers)

Most upvoted comments

Tested 2.35.0 and this works great for non-interactive scripting, thank you! My script:

#!/bin/bash
MAIN_DIR="$HOME/Private/Games/Pocket"
COMMAND="./pocket_updater_x64"
cd $MAIN_DIR
$COMMAND update-self
if [ -f "pocket_updater.zip" ] ; then
  unzip -o pocket_updater.zip
  mv pocket_updater.zip pocket_updater_old.zip
  $COMMAND update
fi

This runs the self-updater and lets it exit. Then if it finds a new zip file, it unzips it and runs the update command.