Quote:
Originally Posted by chrism01
If you re-format that, it'd be easier to read.
|
Ya the formating was a copy and paste from my IDE ... its much easier to read in my app.
Quote:
Originally Posted by chrism01
is a problem. Once you cd into a sub-dir, it'll assume the next dir is a sub-sub-dir etc ie its going to try to
cd acl
acl> cd attr
acl/attr>cd fakeroot
etc. not what you meant. You need to 'cd ..' at the end of the loop to get back to '$abs_bd' or 'cd $abs_bd' .
|
That makes sense... it was cd'ing into a sub-dir... This is how it was, can you give me an example...
Code:
cd $abs_bd
for pkg in acl attr fakeroot pacman libfetch libarchive openssl wget rsync;
do
cd $pkg
makepkg -s $pkg || pkgfail # Rebuild function
cd .. # Doesn't this return to $abs_bd ..?
done
This seemed like it cd .. into the next dir, followed in the loop ...
Is this what you meant..?
Code:
makepkg -s $pkg && cd .. || pkgfail # Rebuild function
Quote:
Originally Posted by chrism01
This
cd $clfs_dir
is redundant; just test if it's a dir, no point in cd'ing into it (especially as the dir test comes after that line; too late...
|
I tried using my [-d] test w/o the cd, and for some reason it would just loop in my "while", so I had to add a "cd $clfs_dir" in order for the test statement to work ... odd
Thanks for your patience ... You've helped me on other occasions...
With only a few months combined experience with Bash, I'm slowly grasping the basics.