modified: clone
new file: pycharm new file: src
This commit is contained in:
+1
-4
@@ -7,12 +7,9 @@ clone ()
|
|||||||
if [ $# -ne "1" ]; then
|
if [ $# -ne "1" ]; then
|
||||||
PROFIL_NAME="$1";
|
PROFIL_NAME="$1";
|
||||||
PROJECT_NAME="$2";
|
PROJECT_NAME="$2";
|
||||||
git clone --recurse-submodules $URL/$PROFIL_NAME/$PROJECT_NAME.git;
|
|
||||||
else
|
else
|
||||||
PROFIL_NAME=painpain
|
|
||||||
PROJECT_NAME="$1";
|
PROJECT_NAME="$1";
|
||||||
git clone --recurse-submodules $URL/$PROFIL_NAME/$PROJECT_NAME.git;
|
|
||||||
fi
|
fi
|
||||||
git clone --recurse-submodules $URL/$PROFIL_NAME/$PROJECT_NAME.git;
|
git clone --recurse-submodules $URL$PROFIL_NAME/$PROJECT_NAME.git;
|
||||||
}
|
}
|
||||||
clone "$@"
|
clone "$@"
|
||||||
|
|||||||
Executable
+2
@@ -0,0 +1,2 @@
|
|||||||
|
#!/usr/bin/bash
|
||||||
|
~/code/pycharm-2025.3.3/bin/pycharm
|
||||||
Executable
+25
@@ -0,0 +1,25 @@
|
|||||||
|
#!/usr/bin/bash
|
||||||
|
|
||||||
|
if [ "$#" -lt 1 ] || [ "$#" -gt 3 ]; then
|
||||||
|
echo "Usage: $0 arg1 [arg2] [arg3]"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# interactive session check
|
||||||
|
if [ -t 0 ]; then
|
||||||
|
echo -n "Delete existing output files? [y/N]: "
|
||||||
|
read ans
|
||||||
|
case "$ans" in
|
||||||
|
y|Y) rm -f *.school ;;
|
||||||
|
*) echo "Aborted"; exit 0 ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
# process input file
|
||||||
|
while IFS= read -r line; do
|
||||||
|
new_f="${line%.*}.school"
|
||||||
|
f > "$new_f"
|
||||||
|
done < "$FILE"
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
||||||
Reference in New Issue
Block a user