eskimspy
April 4th, 2008, 09:24 PM
This will work in the terminal, but not as a sh file, I get the following error:
What is the extension package (with the .xpi) read: 2: arg count
read: 3: Illegal option -e
script.sh:
#!/bin/bash
read -p "What is the extension package (with the .xpi) "
read -e input
unzip $input
cd chrome
for file in *
do
filename=${file%.*i}
done
echo "@import url(chrome://"$filename"/"$filename".css);" >> ~/.gnome2/epiphany/user-stylesheet.css
echo "content "$filename" jar:file:///usr/share/epiphany-browser/chrome/"$filename".jar!/content/"$filename"/
What is the extension package (with the .xpi) read: 2: arg count
read: 3: Illegal option -e
script.sh:
#!/bin/bash
read -p "What is the extension package (with the .xpi) "
read -e input
unzip $input
cd chrome
for file in *
do
filename=${file%.*i}
done
echo "@import url(chrome://"$filename"/"$filename".css);" >> ~/.gnome2/epiphany/user-stylesheet.css
echo "content "$filename" jar:file:///usr/share/epiphany-browser/chrome/"$filename".jar!/content/"$filename"/