Permalink
Browse files

Prefer $() to `

  • Loading branch information...
1 parent 8cd2d80 commit 1c4e73ae3a181812c81188cb96f2c3fc5a679108 isaacs committed Jun 16, 2009
Showing with 6 additions and 6 deletions.
  1. +1 −1 .extra_Linux.bashrc
  2. +4 −4 .extra_yinst.bashrc
  3. +1 −1 install.sh
View
@@ -1,4 +1,4 @@
# Used on Linux platforms.
backup_apache () {
- tarsnap -cvf apache-`date +'%Y-%m-%d'` ~/apache
+ tarsnap -cvf apache-$(date +'%Y-%m-%d') ~/apache
}
View
@@ -18,7 +18,7 @@ portshift () {
relink () {
br="$1"
[ "$br" != "" ] && br="-br $br"
- if ! [ -f "`which yinst_create`" ]; then
+ if ! [ -f "$(which yinst_create)" ]; then
yinst i yinst_create
fi
rm *.tgz &>/dev/null
@@ -27,7 +27,7 @@ relink () {
}
rebuild () {
- if ! [ -f "`which yinst_create`" ]; then
+ if ! [ -f "$(which yinst_create)" ]; then
yinst i yinst_create
fi
rm *.tgz
@@ -36,10 +36,10 @@ rebuild () {
}
dist_nightly () {
- if ! [ -f "`which yinst_create`" ]; then
+ if ! [ -f "$(which yinst_create)" ]; then
yinst i yinst_create
fi
- if ! [ -f "`which dist_install`" ]; then
+ if ! [ -f "$(which dist_install)" ]; then
yinst i dist_tools
fi
rm *.tgz
View
@@ -8,7 +8,7 @@ for i in .*; do
exit 1
fi
fi
- if ln -s `pwd`/$i ~/$i; then
+ if ln -s $(pwd)/$i ~/$i; then
echo "Linked: $i" > /dev/stderr
else
echo "Failed on $i" > /dev/stderr

0 comments on commit 1c4e73a

Please sign in to comment.