updated help text and made firefox as default browser
This commit is contained in:
parent
81ad24aaac
commit
cc650c08d1
|
@ -23,7 +23,8 @@ if [[ $1 == "-h" || $1 == "--help" ]]; then
|
|||
# #
|
||||
# # # # # # # # # # # # # # # # # # # # #"
|
||||
echo
|
||||
echo "usage: youtube_converter <mp3/mpeg> <youtube-link>"
|
||||
echo "usage: youtube_converter <mp3/mpeg> <youtube-link> <destination path>"
|
||||
echo "hint: all options are optional"
|
||||
echo
|
||||
exit 0
|
||||
fi
|
||||
|
@ -36,9 +37,11 @@ else
|
|||
if [ $(whoami) = "root" ]; then
|
||||
echo "info: trying to insall missing dependencies"
|
||||
apt-get install -y ffmpeg curl lame
|
||||
echo "info: all dependencies installed. rerun script."
|
||||
exit 0
|
||||
else
|
||||
echo "error: permission denied"
|
||||
echo "info: install dependencies or run this scrip as superuser"
|
||||
echo "info: install dependencies(ffmpeg, curl and lame) or run this scrip as superuser"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
@ -78,8 +81,8 @@ secondfile=$(echo $file | awk '{print $2}')
|
|||
|
||||
if [ -z "$file" ]; then
|
||||
echo "info: there is no open youtube window, trying to start browser"
|
||||
chromium-browser $link
|
||||
#firefox $link &
|
||||
#chromium-browser $link
|
||||
firefox $link &
|
||||
sleep 6
|
||||
file=$(ls -l /tmp | grep Flash | awk '{print $8}')
|
||||
secondfile=$(echo $file | awk '{print $2}')
|
||||
|
|
Loading…
Reference in New Issue