Skip to content

Commit

Permalink
dirname
Browse files Browse the repository at this point in the history
  • Loading branch information
ikrong committed Jul 4, 2024
1 parent 996834b commit 0ef6920
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions copy.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/bin/bash

SCRIPT_DIR=`dirname $0`
cd $SCRIPT_DIR

./exec.sh copy $@
7 changes: 5 additions & 2 deletions status.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

SCRIPT_DIR=`dirname $0`
cd $SCRIPT_DIR

function select_option() {
OLDIFS="$IFS"
IFS="|"
Expand All @@ -14,9 +17,9 @@ function select_option() {
local i=0
for option in "${options[@]}"; do
if [ $i -eq $selected ]; then
echo -e "\033[32m● $option\033[0m"
echo -e "\033[32m● $option\033[0m"
else
echo -e "$option"
echo -e " $option"
fi
i=$((i + 1))
done
Expand Down
3 changes: 3 additions & 0 deletions sync.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/bin/bash

SCRIPT_DIR=`dirname $0`
cd $SCRIPT_DIR

./exec.sh sync $@

0 comments on commit 0ef6920

Please sign in to comment.