feat: Allow to run script from outside ~/.bootstrap directory
This commit is contained in:
		@@ -1,6 +1,8 @@
 | 
				
			|||||||
#!/bin/bash
 | 
					#!/bin/bash
 | 
				
			||||||
 | 
					
 | 
				
			||||||
bash os.bash
 | 
					BASEDIR=$(cd "$(dirname "$0")" && pwd)
 | 
				
			||||||
bash tools.bash
 | 
					
 | 
				
			||||||
bash fonts.bash
 | 
					bash "${BASEDIR}/os.bash"
 | 
				
			||||||
bash config.bash
 | 
					bash "${BASEDIR}/tools.bash"
 | 
				
			||||||
 | 
					bash "${BASEDIR}/fonts.bash"
 | 
				
			||||||
 | 
					bash "${BASEDIR}/config.bash"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,7 +1,7 @@
 | 
				
			|||||||
#!/bin/bash
 | 
					#!/bin/bash
 | 
				
			||||||
 | 
					
 | 
				
			||||||
for file in config.d/*.bash
 | 
					BASEDIR=$(cd "$(dirname "$0")" && pwd)
 | 
				
			||||||
do
 | 
					 | 
				
			||||||
  bash $file
 | 
					 | 
				
			||||||
done
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					for file in "${BASEDIR}"/config.d/*.bash; do
 | 
				
			||||||
 | 
					  bash "${file}"
 | 
				
			||||||
 | 
					done
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
# FONTS
 | 
					# FONTS
 | 
				
			||||||
 | 
					
 | 
				
			||||||
fontdir="$HOME/.local/share/fonts"
 | 
					fontdir="${HOME}/.local/share/fonts"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
declare -a fonts
 | 
					declare -a fonts
 | 
				
			||||||
fonts+=("Inconsolata")
 | 
					fonts+=("Inconsolata")
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										6
									
								
								os.bash
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								os.bash
									
									
									
									
									
								
							@@ -1,5 +1,7 @@
 | 
				
			|||||||
#!/bin/bash
 | 
					#!/bin/bash
 | 
				
			||||||
 | 
					
 | 
				
			||||||
for file in os.d/*.bash; do
 | 
					BASEDIR=$(cd "$(dirname "$0")" && pwd)
 | 
				
			||||||
  bash $file
 | 
					
 | 
				
			||||||
 | 
					for file in "${BASEDIR}"/os.d/*.bash; do
 | 
				
			||||||
 | 
					  bash "${file}"
 | 
				
			||||||
done
 | 
					done
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,7 @@
 | 
				
			|||||||
#!/bin/bash
 | 
					#!/bin/bash
 | 
				
			||||||
 | 
					
 | 
				
			||||||
for file in tools.d/*.bash
 | 
					BASEDIR=$(cd "$(dirname "$0")" && pwd)
 | 
				
			||||||
do
 | 
					
 | 
				
			||||||
  bash $file
 | 
					for file in "${BASEDIR}"/tools.d/*.bash; do
 | 
				
			||||||
 | 
					  bash "${file}"
 | 
				
			||||||
done
 | 
					done
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user