Skip to content

Instantly share code, notes, and snippets.

@Cloudef
Created November 19, 2011 00:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Cloudef/1378156 to your computer and use it in GitHub Desktop.
Save Cloudef/1378156 to your computer and use it in GitHub Desktop.
milkyhelper, repo download
#!/bin/sh
# Install && Update everything from repo
# Virtual SD (Download directory)
# Creates pandora layout there and stores libmilky database
VD="/absolute/path/to/download/dir"
mkdir -p "$VD"
# Sync database with repo
milky -r "$VD" -Sy
# Install, but do not reinstall
milky --noconfirm --needed -r "$VD" -S $(milky -r "$VD" -Si | sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g" | grep '^ID' | sed -re 's/^ID[\t ]+: //g');
# Update everything
milky -r "$VD" --noconfirm -Su
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment