Skip to content

Commit 1eff056

Browse files
committed
install: replace fragile ls in for loop
1 parent 2bf259a commit 1eff056

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

install.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
CSDIR="${XDG_CONFIG_HOME:-$HOME/.config}/geany/colorschemes/"
44
echo "Installing themes into '$CSDIR'..."
55
mkdir -p "$CSDIR"
6-
for SCHEME in `ls colorschemes/*.conf`
7-
do
8-
BNAME=`basename "$SCHEME"`
6+
7+
for SCHEME in colorschemes/*.conf; do
8+
BNAME="${SCHEME##*/}"
99
echo " => $BNAME"
1010
cp "$SCHEME" "$CSDIR"
1111
done

0 commit comments

Comments
 (0)