Might want to use the shebang version of save (asset.save!) so that the script will fail on any problems.
asset.save!