Skip to content

Commit

Permalink
call with variables mac
Browse files Browse the repository at this point in the history
  • Loading branch information
joergi committed Jan 5, 2025
1 parent 28c90ee commit 9d608f6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions superexport.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ linux_write_secret_into_foo(){
}

if [[ "$(uname)" == 'Darwin' ]]; then
mac_write_secret_into_foo "$secretname"
mac_write_secret_into_foo "$secretname" "$2" "$3"
elif [[ "$(uname)" == 'Linux' ]]; then
linux_write_secret_into_foo "$1" "$secretname"
fi
Expand Down Expand Up @@ -157,9 +157,9 @@ write_exported_sh_file

create_secretreader_sh_file(){
echo "start create_secretreader_sh_file"
if [ ! -f $superexportfolder/.secretreader.sh ]; then
echo "#!/bin/bash" > $superexportfolder/.secretreader.sh
chmod +x $superexportfolder/.secretreader.sh
if [ ! -f "$superexportfolder"/.secretreader.sh ]; then
echo "#!/bin/bash" > "$superexportfolder"/.secretreader.sh
chmod +x "$superexportfolder"/.secretreader.sh
fi
echo "end create_secretreader_sh_file"
}
Expand Down Expand Up @@ -192,4 +192,4 @@ fi
####################################
# write secretreader
####################################
echo -e $secretreader >> $superexportfolder/.secretreader.sh
echo -e "$secretreader" >> "$superexportfolder"/.secretreader.sh

0 comments on commit 9d608f6

Please sign in to comment.