View Single Post
Old 07-28-2012, 04:22 PM   #20
Titano
Definitely not King Kong
Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.
 
Titano's Avatar
 
Posts: 126
Karma: 59238
Join Date: Jul 2012
Location: United States
Device: Kindle Touch
I was thinking... Some apps (such as wafs) need install scripts to run before you can use it. What if people added postinstall.sh to their legs. Then they could install them in one go. You could update your script to do something like this.
Quote:
#!/bin/sh
mv -f /mnt/us/*.leg /mnt/us/extensions
mv -f /mnt/us/*.sh /mnt/us/extensions
cd /mnt/us/extensions
unzip *.leg
if [ -f /mnt/us/extensions/*.sh ]
then
rm -f *.leg && sh ./*.sh && rm -f ./*.sh && killall cvm
else
rm -f *.leg
fi
killall cvm
Just an idea and you don't have to use it but it would help the average user by getting rid of a step and just letting the user use the program.

Last edited by Titano; 07-29-2012 at 01:34 AM. Reason: Forgot to add rm *.sh
Titano is offline   Reply With Quote