Verified Commit fb61a3b0 authored by Oskar Roesler's avatar Oskar Roesler
Browse files

Fix parameter expansions in scripts/

parent 752623fe
#!/bin/bash
CACHE_PATH=${XDG_CACHE_HOME+"~/.cache"}
CACHE_PATH=${XDG_CACHE_HOME:-"$HOME/.cache"}
PACKAGES_PATH=$CACHE_PATH/ros-aur-helper/packages
for dir in $(ls $PACKAGES_PATH);
......
#!/bin/zsh
CACHE_PATH=${XDG_CACHE_HOME+"~/.cache"}
CACHE_PATH=${XDG_CACHE_HOME:-"$HOME/.cache"}
PACKAGES_PATH=$CACHE_PATH/ros-aur-helper/packages
for i in $(ls $PACKAGES_PATH);
do
if pacman -Si $i | egrep -q 'cpp|boost'; then
if pikaur -Si $i | egrep -q 'cpp|boost'; then
echo "$i contains c++ code"
if ! grep "('any')" $PACKAGES_PATH/$i/PKGBUILD; then
echo "$i already has a correct arch=() array"
......@@ -24,4 +24,4 @@ do
else
echo "$i does NOT contain c++ code";
fi
done
\ No newline at end of file
done
#!/bin/zsh
CACHE_PATH=${XDG_CACHE_HOME+"~/.cache"}
CACHE_PATH=${XDG_CACHE_HOME:-"$HOME/.cache"}
PACKAGES_PATH=$CACHE_PATH/ros-aur-helper/packages
for i in $(ls $PACKAGES_PATH);
......
#!/bin/zsh
CACHE_PATH=${XDG_CACHE_HOME+"~/.cache"}
CACHE_PATH=${XDG_CACHE_HOME:-"$HOME/.cache"}
PACKAGES_PATH=$CACHE_PATH/ros-aur-helper/packages
for i in $(ls $PACKAGES_PATH);
......
#!/bin/zsh
CACHE_PATH=${XDG_CACHE_HOME+"~/.cache"}
CACHE_PATH=${XDG_CACHE_HOME:-"$HOME/.cache"}
PACKAGES_PATH=$CACHE_PATH/ros-aur-helper/packages
for i in $(ls $PACKAGES_PATH);
......
#!/bin/zsh
CACHE_PATH=${XDG_CACHE_HOME+"~/.cache"}
CACHE_PATH=${XDG_CACHE_HOME:-"$HOME/.cache"}
PACKAGES_PATH=$CACHE_PATH/ros-aur-helper/\$PACKAGES_PATH
for i in $(ls $PACKAGES_PATH);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment