From 7963b74d0c067cdf17c0f393f69215cc65c8166d Mon Sep 17 00:00:00 2001 From: hyzen Date: Sat, 17 Jan 2026 01:16:11 +0530 Subject: [PATCH] Fix: current directory recognition --- encryptall.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/encryptall.sh b/encryptall.sh index 7cb962a..3aaeb5c 100755 --- a/encryptall.sh +++ b/encryptall.sh @@ -1,6 +1,5 @@ #!/bin/bash -cd "$(dirname "$0")" mkdir -p Encrypted echo -n "Enter password: " @@ -11,7 +10,7 @@ PASSFILE=$(mktemp) echo "$PASSWORD" > "$PASSFILE" for file in *; do - if [ -f "$file" ] && [ "$file" != "Encrypted" ] && [ "$file" != "encryptall.sh" ]; then + if [ -f "$file" ] && [ "$file" != "Encrypted" ] && [ "$file" != "encryptall.sh" ] && [ "$file" != "encryptall" ]; then # Check if already encrypted previously if [ -f "Encrypted/${file}.gpg" ]; then echo "Skipping (already encrypted): $file"