Compare commits
No commits in common. "59fc963803e377e5dbcac24aeac9c2af01f31e77" and "8f9e6bf1c7e3b6064f3124125e94f9ee6430b25e" have entirely different histories.
59fc963803
...
8f9e6bf1c7
1 changed files with 2 additions and 9 deletions
11
install.sh
11
install.sh
|
@ -1,7 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
required="sway swayidle swaylock waybar"
|
required="sway swayidle swaylock waybar"
|
||||||
BIN_FOLDER="$HOME/.local/bin"
|
|
||||||
|
|
||||||
printf "Checking required programs :\n"
|
printf "Checking required programs :\n"
|
||||||
for p in $required
|
for p in $required
|
||||||
|
@ -21,17 +20,11 @@ done < <(ls -d -1 */)
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
printf "Create symblink for executables\n"
|
printf "Create symblink for executables\n"
|
||||||
if [ ! -d "$BIN_FOLDER" ]
|
|
||||||
then
|
|
||||||
printf "\tCreate $BIN_FOLDER\n"
|
|
||||||
mkdir -p $BIN_FOLDER
|
|
||||||
fi
|
|
||||||
|
|
||||||
cd bin
|
cd bin
|
||||||
while read d
|
while read d
|
||||||
do
|
do
|
||||||
printf "\t%s script found\n" "$d"
|
printf "\t%s script found\n" "$d"
|
||||||
rm -rf $BIN_FOLDER/${d}
|
#rm -rf $HOME/.local/bin/${d}
|
||||||
ln -s "$(pwd)/${d}" "$BIN_FOLDER/${d}"
|
#ln -s "$(pwd)/${d}" "$HOME/.local/bin/${d}"
|
||||||
done < <(ls -1 *)
|
done < <(ls -1 *)
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Reference in a new issue