Skip to content

Commit

Permalink
Fix bashisms in encrypt and decrypt tool
Browse files Browse the repository at this point in the history
  • Loading branch information
nnyyxxxx committed Sep 19, 2024
1 parent 596f278 commit 51c5cb5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tabs/utils/encrypt_decrypt_tool.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ encrypt_file() {
echo "Enter the path for the encrypted file or directory:"
read -r OUTPUT_PATH

echo "Enter the encryption password:"
read -s -r PASSWORD
printf "Enter the encryption password: "
read -r PASSWORD

if [ -d "$INPUT_PATH" ]; then
# Encrypt each file in the directory
Expand Down Expand Up @@ -99,8 +99,8 @@ decrypt_file() {
echo "Enter the path for the decrypted file or directory:"
read -r OUTPUT_PATH

echo "Enter the decryption password:"
read -s -r PASSWORD
printf "Enter the decryption password: "
read -r PASSWORD

if [ -d "$INPUT_PATH" ]; then
# Decrypt each file in the directory
Expand Down Expand Up @@ -145,8 +145,8 @@ main(){
*) echo "Invalid choice. Please try again." ;;
esac

echo "Press [Enter] to continue..."
read -r
printf "Press [Enter] to continue..."
read -r dummy
done
}

Expand Down

0 comments on commit 51c5cb5

Please sign in to comment.