mirror of
				https://gitea.blesmrt.net/mikaela/shell-things.git
				synced 2025-10-31 01:17:20 +01:00 
			
		
		
		
	Begin transition to codeberg
This commit is contained in:
		
							parent
							
								
									ae144a1132
								
							
						
					
					
						commit
						68286f804c
					
				| @ -5,6 +5,7 @@ | ||||
| set -x | ||||
| 
 | ||||
| # If the latest commit cannot be verified, exit to error. | ||||
| echo "git config --global gpg.ssh.allowedSignersFile ~/src/codeberg.org/Aminda/ssh-allowed_signers/allowed_signers" | ||||
| git verify-commit HEAD || exit 1 | ||||
| 
 | ||||
| # Place my personal more questionable aliases in place, except that I don't | ||||
|  | ||||
							
								
								
									
										2
									
								
								install
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								install
									
									
									
									
									
								
							| @ -6,6 +6,7 @@ set -x | ||||
| # If my allowed_signers are present, use them, if not, clone them, and try | ||||
| # again. The gitconfig expects them here. | ||||
| if [ -d ~/src/gitea.blesmrt.net/Mikaela/ssh-allowed_signers ]; then | ||||
| 	echo "git config --global gpg.ssh.allowedSignersFile ~/src/codeberg.org/Aminda/ssh-allowed_signers/allowed_signers" | ||||
| 	git verify-commit HEAD || exit 1 | ||||
| 	sleep 3 | ||||
| else | ||||
| @ -13,6 +14,7 @@ else | ||||
| 	# -vp - verbose, parent. This comment won't be repeated. | ||||
| 	mkdir -vp ~/src/gitea.blesmrt.net/Mikaela/ | ||||
| 	git clone https://gitea.blesmrt.net/Mikaela/ssh-allowed_signers.git ~/src/gitea.blesmrt.net/Mikaela/ssh-allowed_signers | ||||
| 	echo "git config --global gpg.ssh.allowedSignersFile ~/src/codeberg.org/Aminda/ssh-allowed_signers/allowed_signers" | ||||
| 	git verify-commit HEAD || exit 1 | ||||
| 	sleep 3 | ||||
| fi | ||||
|  | ||||
| @ -747,9 +747,10 @@ function shell-things { | ||||
| 		echo "shell-things: $SHELL_THINGS_REPO exists, git pulling..." | ||||
| 		echo "" | ||||
| 		cd $SHELL_THINGS_REPO | ||||
| 		git remote set-url origin https://gitea.blesmrt.net/Mikaela/shell-things.git | ||||
| 		git remote set-url origin https://codeberg.org/Aminda/shell-things.git | ||||
| 		git fetch --all | ||||
| 		git pull | ||||
| 		echo "git config --global gpg.ssh.allowedSignersFile ~/src/codeberg.org/Aminda/ssh-allowed_signers/allowed_signers" | ||||
| 		git verify-commit HEAD || exit 1 | ||||
| 		sleep 10 | ||||
| 		echo "" | ||||
| @ -760,7 +761,7 @@ function shell-things { | ||||
| 		echo "" | ||||
| 		echo "shell-things: $SHELL_THINGS_REPO doesn't exist, cloning..." | ||||
| 		echo "" | ||||
| 		git clone https://gitea.blesmrt.net/Mikaela/shell-things.git $SHELL_THINGS_REPO | ||||
| 		git clone https://codeberg.org/Aminda/shell-things.git $SHELL_THINGS_REPO | ||||
| 		cd $SHELL_THINGS_REPO | ||||
| 		sleep 10 | ||||
| 		echo "" | ||||
| @ -903,7 +904,7 @@ myip6() { | ||||
| 
 | ||||
| # Easier verifying of SSH signed files: ssh-verify-file whatever@mikaela.info file.txt | ||||
| # It's assumed that signature of file.txt is called as file.txt.sig | ||||
| sshAllowedSigners=$HOME/src/gitea.blesmrt.net/Mikaela/ssh-allowed_signers/allowed_signers | ||||
| sshAllowedSigners=$HOME/src/codeberg.org/Aminda/ssh-allowed_signers/allowed_signers | ||||
| ssh-verify-file() { | ||||
| 	echo "$1 ${2:?Usage: ssh-verify-file <email> <file-to-verify>}" > /dev/null | ||||
| 	ssh-keygen -Y verify -f $sshAllowedSigners -I $1 -n file -s $2.sig < $2 | ||||
|  | ||||
							
								
								
									
										7
									
								
								rc/zshrc
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								rc/zshrc
									
									
									
									
									
								
							| @ -733,9 +733,10 @@ function shell-things { | ||||
| 		echo "shell-things: $SHELL_THINGS_REPO exists, git pulling..." | ||||
| 		echo "" | ||||
| 		cd $SHELL_THINGS_REPO | ||||
| 		git remote set-url origin https://gitea.blesmrt.net/Mikaela/shell-things.git | ||||
| 		git remote set-url origin https://codeberg.org/Aminda/shell-things.git | ||||
| 		git fetch --all | ||||
| 		git pull | ||||
| 		echo "git config --global gpg.ssh.allowedSignersFile ~/src/codeberg.org/Aminda/ssh-allowed_signers/allowed_signers" | ||||
| 		git verify-commit HEAD || exit 1 | ||||
| 		sleep 10 | ||||
| 		echo "" | ||||
| @ -746,7 +747,7 @@ function shell-things { | ||||
| 		echo "" | ||||
| 		echo "shell-things: $SHELL_THINGS_REPO doesn't exist, cloning..." | ||||
| 		echo "" | ||||
| 		git clone https://gitea.blesmrt.net/Mikaela/shell-things.git $SHELL_THINGS_REPO | ||||
| 		git clone https://codeberg.org/Aminda/shell-things.git $SHELL_THINGS_REPO | ||||
| 		cd $SHELL_THINGS_REPO | ||||
| 		sleep 10 | ||||
| 		echo "" | ||||
| @ -889,7 +890,7 @@ myip6() { | ||||
| 
 | ||||
| # Easier verifying of SSH signed files: ssh-verify-file whatever@mikaela.info file.txt | ||||
| # It's assumed that signature of file.txt is called as file.txt.sig | ||||
| sshAllowedSigners=$HOME/src/gitea.blesmrt.net/Mikaela/ssh-allowed_signers/allowed_signers | ||||
| sshAllowedSigners=$HOME/src/codeberg.org/Aminda/ssh-allowed_signers/allowed_signers | ||||
| ssh-verify-file() { | ||||
| 	echo "$1 ${2:?Usage: ssh-verify-file <email> <file-to-verify>}" > /dev/null | ||||
| 	ssh-keygen -Y verify -f $sshAllowedSigners -I $1 -n file -s $2.sig < $2 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user