Skip to content

Commit 6892bc3

Browse files
Konrad Lotherlukrop
Konrad Lother
authored andcommitted
fix shebang and (relative) path bugs
1 parent 142cb20 commit 6892bc3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

file.bash

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/sh
22

33
print_usage() {
44
echo "Usage: $PROGRAM file action pass-name [path]"
@@ -13,6 +13,8 @@ cmd_store() {
1313
local file="$2"
1414
local passfile="$PREFIX/$path.gpg"
1515

16+
cd $OLDPWD # fix for relative paths
17+
1618
check_sneaky_paths "$1"
1719
set_git "$passfile"
1820

@@ -39,7 +41,7 @@ cmd_store() {
3941
}
4042

4143
cmd_retrieve() {
42-
local path="$1"
44+
local path="$1.b64"
4345
local passfile="$PREFIX/$path.gpg"
4446

4547
if [[ -z $path ]]; then

0 commit comments

Comments
 (0)