Hi, I new to linux, and this is my first time create bash script.
I wonder why I doesn't works. it's said I don't have permission.
when I used debug mode to run the script it can create/decompressed a single directory or file.
Note : I run the script as root user(Super user).
Code:
#!/bash/bin
clear
echo "Testing script 1."
mkdir $LFS/SRC
cd $LFS/SRC
echo "#decompressed bintutils-2.15.94.0.2.2 Packages"
`bzip2 -dc /sources/binutils-2.15.94.0.2.2.tar.bz2 | tar xvf -`
cd binutils-2.15.94.0.2.2
`patch -Np1 -i /sources/binutils-2.15.94.0.2.2-gcc4-1.patch`
mkdir ../binutils-build
cd ../binutils-build
../binutils-2.15.94.0.2.2/configure --prefix=/tools --disable-nls
make
make install
make -C ld clean
make -C ld LIB_PATH=/tools/lib