adi1090x / rofi

A huge collection of Rofi based custom Applets, Launchers & Powermenus.
GNU General Public License v3.0
6.33k stars 293 forks source link

set aboslute path to parent of setup.sh #126

Closed airtonix closed 3 months ago

airtonix commented 1 year ago

fixes #125


before:

> pwd
/home/me/Projects/Mine/Github/Dotfiles

> git clone --depth=1 https://github.com/adi1090x/rofi.git ./windowmanagers/files/rofi

> ./windowmanagers/files/rofi/setup.sh

[*] Installing fonts... 
cp: cannot stat '/home/me/Projects/Mine/Github/Dotfiles/fonts/*': No such file or directory
[*] Updating font cache...

[*] Creating a backup of your rofi configs... 
[*] Installing rofi configs... 
cp: cannot stat '/home/me/Projects/Mine/Github/Dotfiles/files/*': No such file or directory
[!] Failed to install.

after:

> ./windowmanagers/files/rofi/setup.sh                                               

[*] Installing fonts... 
[*] Updating font cache...

[*] Creating a backup of your rofi configs... 
[*] Installing rofi configs... 
[*] Successfully Installed.

https://stackoverflow.com/a/9107028