i still get the same thing whether i add the spaces in or not:
Code:
compile: 47: [[: not found
compile: 76: [[: not found
Code:
#!/bin/bash
clear
echo "version of keytouch? "
#read keytouch_version
keytouch_version="2.4.1"
echo "version of keytouch editor? "
#read editor_version
editor_version="3.2.0-beta"
echo "extract tarballs?"
read decision
echo ""
if [[ "$decision" == y]]; then
tar xvf keytouch-$keytouch_version.tar.gz
tar xvf keytouch-editor-$editor_version.tar.gz
echo ""
#compiles and installs keytouch
cd keytouch-$keytouch_version
./configure
make -s
sudo make -s install
echo ""
cd keytouch-config
./configure
make -s
sudo make -s install
echo ""
cd ../keytouch-keyboard
./configure
make -s
sudo make -s install
echo ""
#compiles and installs the keytouch editor
cd ../../keytouch-editor-$editor_version
./configure
make -s
sudo make -s install
echo ""
fi
if [[ "$decision" == n]]; then
#compiles and installs keytouch
cd 'keytouch-$keytouch_version'
./configure
make -s
sudo make -s install
echo ""
cd keytouch-config
./configure
make -s
sudo make -s install
echo ""
cd ../keytouch-keyboard
./configure
make -s
sudo make -s install
echo ""
#compiles and installs the keytouch editor
cd ../../keytouch-editor-$editor_version
./configure
make -s
sudo make -s install
echo ""
fi
for the other thing i want to be able to pass "own" the path in the same line, pretty much how you would do with any other command that requires a path, such as chown [user][path] or chgrp [group] [path]
Bookmarks