Initial push
This commit is contained in:
		
							
								
								
									
										23
									
								
								user_config/bin/code-themer
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										23
									
								
								user_config/bin/code-themer
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,23 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
# . CONFIG.sh
 | 
			
		||||
 | 
			
		||||
# set -o xtrace       ## To debug scripts
 | 
			
		||||
# set -o errexit      ## To exit on error
 | 
			
		||||
# set -o errunset     ## To exit if a variable is referenced but not set
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
function main() {
 | 
			
		||||
    call_path=`pwd`
 | 
			
		||||
    path=""
 | 
			
		||||
 | 
			
		||||
    if [[ ! "${1::1}" == /* ]]; then
 | 
			
		||||
        path="${call_path}/${1}"
 | 
			
		||||
    else
 | 
			
		||||
        path="${1}"
 | 
			
		||||
    fi
 | 
			
		||||
 | 
			
		||||
    cd "/opt/"
 | 
			
		||||
    python /opt/gtk-code-themer.zip "$@"
 | 
			
		||||
}
 | 
			
		||||
main "$@";
 | 
			
		||||
		Reference in New Issue
	
	Block a user